SA-MP Forums Archive
[Tool/Web/Other] Online missing brackets finder - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] Online missing brackets finder (/showthread.php?tid=358839)



Online missing brackets counter - RedJohn - 11.07.2012

PAWN: Online missing brackets counter


Hey guys. I made a little PHP website where you paste your pawno script and it shows you number of opened and number of closed brackets.

It's easy to use. This is just simple website and I will update it and fix known bugs in future.


Website link: Website is down. Upgrading with new features



Re: Online missing brackets finder - FireCat - 11.07.2012

Nice! :0


Re: Online missing brackets finder - RedJohn - 11.07.2012

Quote:
Originally Posted by FireCat
View Post
Nice! :0
Thanks bro!


Re: Online missing brackets finder - Kirollos - 11.07.2012

nice script +Rep


Re: Online missing brackets finder - JoBullet - 12.07.2012

Quote:
Originally Posted by ******
View Post
Bug:

pawn Code:
//{
'{'
}
It sure cannot catch everything, otherwise he might need parser, preprocessor and lexer(i.e. full compiler). Just think of macros, strings, comments, character literals etc. There are limitless ways of misrepresenting braces this online web service does not catch because it's simple and stupid.


Re: Online missing brackets finder - RedJohn - 12.07.2012

Quote:
Originally Posted by ******
View Post
Yes, but if it is trying to find missing brackets and can't even tell this then frankly it its basically useless.
I will create software so you'll check for any bugs. BTW i saw one's using perl and other shit! Bitch please, can anybody create simple software without any shit?!


Re: Online missing brackets finder - RedJohn - 12.07.2012

I don't want to argue with beta tester. I'm little guys. You know better!


Re: Online missing brackets finder - FireCat - 12.07.2012

Quote:
Originally Posted by RedJohn
View Post
I don't want to argue with beta tester. I'm little guys. You know better!
You know, ****** has a point.
If you're releasing something to help the community, you should accept criticism.
And your code ain't just to test small things, probably people will use it for big codes, because thats where normaly it happens, in big ass codes...


Re: Online missing brackets finder - next-studio|TheKiller - 12.07.2012

RedJohn, you're most likely just counting the "{" and "}" with the explodes.

example:
PHP Code:
$open count(explode("{"$_POST['code']));
$close count(exokide("}"$_POST['code']));
echo 
'<script type="text/javascript">alert("you have '.$open.' open brackets\nAnd '.$close.' closed brackets");</script>'
ps: scripted on the quick reply box e.e


Re: Online missing brackets finder - Lorenzo* - 12.07.2012

looks okay, but from the comments it seems to be scrappy, 4/10