[Tool/Web/Other] Missing Brackets Finder [1.1.0] - NOW WITH GUI
#1

PAWN: Missing angle brackets finder
Picture of the new GUI


About


This script, written in Perl, analyses your script in terms of angle brackets ( { }).
It tells you which bracket(s) have/has a missing bracket, so you can fix your code (the pawn compiler is buggy in this aspect. If there is one or more angle bracket missing somewhere, it outputs wrong errors or even crashes, so you have to go line-by-line).
It can also help you if you don't even know whether brackets are the problem and where to find them. This script isn't 100% accurate because it isn't psychic:

if(..)
{
if(..)
{
}

How could the script guess whether the first if or the seconds if has the missing pair?
But this script helps you in this case by telling you roughly where to look for a missing bracket.

It is released under the creativecommons 3 (http://creativecommons.org/licenses/by/3.0/)


Installation

You need to have the Perl VM installed. If you are using Windows, you have to install Perl at first.
Linux based systems and many other operating systems have it installed by default.

1. Go to http://www.activestate.com/activeperl/downloads and download it (the first one, Windows (x86))
2. Install activeperl
3. Download and unzip brackets.zip and start „missing brackets finder.exe“.
If activeperl is installed, a GUI should shown up.

The „perl“ folder inside is needed by the executable, so don't delete the folder.

If you are using a linux based system, just open the terminal and run „perl GUI.pl“. You also need to have the perl module „Tkx“ installed (you can install Tkx with the package installer: apt-get, yum, ..).

("missing bracket finder.exe" is compiled with mingw, "missing brackets finder alternative.exe" is compiled with the VC++ one (could complained about missing .dlls if you don't have the latest .net installed, thats why I replaced it))

Download (1.1.0 final)
1. Attachment
2. http://jeffersongta.de/downloads/brackets.zip

Source of everything is included


Known issues

- it reported a line, you go to the line but there isn't a missing bracket: Look for the missing bracket around the area where the bracket was reported (the function, ..) (should happen rarely - in investigation)
- works with large scripts (80k+ lines), but at the cost of memory (~60 MB) and execution time (won't be fixed. Rewritting in a programming language such as C++ would take too much time. I needed the dynamics of languages such as perl for this application)
- you are not able to move and touch the window while it is analyzing a script (won't be fixed.)

Changelog

Beta 5 → Final 1:
- Fixed problems with ' and „ in comments („// don't“ << made the script not working)
- create a how-to gallery, so EVERYONE is able to use this


Final 1 → Final 1.1:
- Easier to use
- Fixed many bugs
- GUI
- faster, improved most of the code



Credits
www.perl-community.de (GwenDragon and MatthiasW): Helped me using Text::Balanced, fixing some bugs and stripping out strings (text inside quotes) and gave me more tips in perl
Reply


Messages In This Thread
Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Remis - 26.08.2010, 15:13
Re: Missing Brackets Finder [Beta5] - by Calgon - 26.08.2010, 15:20
Re: Missing Brackets Finder [Beta5] - by [KMA]DlennartD - 27.08.2010, 08:20
Re: Missing Brackets Finder [Beta5] - by gamer931215 - 27.08.2010, 13:42
Re: Missing Brackets Finder [Beta5] - by Remis - 27.08.2010, 14:05
Re: Missing Brackets Finder [Beta5] - by sushihusi - 16.09.2010, 16:09
Re: Missing Brackets Finder [Beta5] - by Remis - 16.09.2010, 18:53
Re: Missing Brackets Finder [Beta5] - by The_Gangstas - 11.12.2010, 04:19
Re: Missing Brackets Finder [Beta5] - by Scenario - 11.12.2010, 04:22
Re: Missing Brackets Finder [Beta5] - by The_Gangstas - 11.12.2010, 04:24
Re: Missing Brackets Finder [Beta5] - by Scenario - 11.12.2010, 04:28
Re: Missing Brackets Finder [Beta5] - by ColdXX - 11.12.2010, 09:27
Re: Missing Brackets Finder [Beta5] - by Remis - 11.12.2010, 09:40
Re: Missing Brackets Finder [Beta5] - by CYB3RN - 11.12.2010, 10:19
Re: Missing Brackets Finder [Beta5] - by kLx - 11.12.2010, 11:31
Re: Missing Brackets Finder [Beta5] - by Remis - 11.12.2010, 15:38
Re: Missing Brackets Finder [Beta5] - by Mean - 13.12.2010, 16:58
Re: Missing Brackets Finder [Beta5] - by Jochemd - 08.01.2011, 19:26
Re: Missing Brackets Finder [Beta5] - by yarrum3 - 12.01.2011, 10:03
Re: Missing Brackets Finder [Beta5] - by Remis - 12.01.2011, 14:16
Re: Missing Brackets Finder [Beta5] - by ToPhrESH - 12.01.2011, 20:43
Re: Missing Brackets Finder [Beta5] - by Remis - 18.01.2011, 15:51
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by iGetty - 09.02.2011, 23:32
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by SkizzoTrick - 10.02.2011, 13:01
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Black_Sun1 - 11.02.2011, 18:26
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Remis - 12.02.2011, 08:02
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Black_Sun1 - 12.02.2011, 16:11
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Remis - 13.02.2011, 07:19
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by SkizzoTrick - 13.02.2011, 11:38
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by justsomeguy - 13.02.2011, 11:54
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Stunt_Guy - 13.02.2011, 13:45
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Black_Sun1 - 14.02.2011, 18:58
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Remis - 17.02.2011, 16:43
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by xir - 25.02.2011, 11:33
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Remis - 25.02.2011, 15:24
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by spedico - 25.02.2011, 15:28
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Kwarde - 25.02.2011, 16:45
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by xir - 25.02.2011, 16:53
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Chaos01 - 28.02.2011, 12:43
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by linuxthefish - 21.03.2011, 12:51
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Vlad_Dubonos - 24.03.2011, 18:38
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Vlad_Dubonos - 24.03.2011, 18:59
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Vlad_Dubonos - 24.03.2011, 21:59
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Remis - 25.03.2011, 03:51
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by LZLo - 21.05.2011, 17:07
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by LZLo - 21.05.2011, 17:22
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by The God - 01.07.2011, 15:56
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by PCheriyan007 - 07.07.2011, 14:49
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Andrejs - 24.07.2011, 14:34
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by OUL - 26.07.2011, 22:48
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Gamer_Z - 26.07.2011, 22:50
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by OUL - 26.07.2011, 23:04
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Guest3598475934857938411 - 27.07.2011, 00:02
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by antsolen - 03.08.2011, 11:34
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Pharrel - 15.09.2011, 09:47
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by robintjeh - 20.10.2011, 22:56
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Drebin - 20.10.2011, 23:20
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Dusl12 - 20.11.2011, 15:25
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by cRcKdwN - 02.07.2012, 12:57
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by shaPP - 16.07.2012, 08:11
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by ArmandoRamiraz - 16.07.2012, 16:41
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by DaNo - 18.07.2012, 08:10
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Gioslami - 13.09.2012, 17:20
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by NoahF - 17.09.2012, 10:34
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by NoahF - 17.09.2012, 10:36
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Er@x3r - 13.10.2012, 11:39
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Ghost_Boii - 13.10.2012, 12:03
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by feartonyb - 02.11.2012, 08:55
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Glint - 02.11.2012, 10:32
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by DLR - 02.02.2013, 20:10
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by k3nw00d_kri5ty - 06.02.2013, 06:33
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by HislamionAS - 30.06.2013, 09:48
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by imnoob - 11.07.2013, 17:08
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Dragony92 - 13.07.2013, 18:07
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by MikkiMapper - 14.08.2014, 12:51
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by alex10 - 18.10.2014, 18:56
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by PWNNAH - 29.03.2015, 08:27
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by Knight_Rider - 29.03.2015, 13:16
Re: Missing Brackets Finder [1.1.0] - NOW WITH GUI - by shadowstorm - 12.04.2015, 19:32

Forum Jump:


Users browsing this thread: 1 Guest(s)