HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

JASS Syntax Checker

01-11-2003, 04:18 AM#1
magnus99
Hi. You may have already seen this on the JASS/AI Board, but I thought I'd cross-post it here now that the tool is useful to people outside of AI scripting.

I've written a small tool for checking the syntax of JASS Scripts, like custom ai scripts or the war3map.j trigger script. World edit already verifies trigger syntax when you save a map, but it won't check the script if you fiddle with it directly or have some "library" script you want to include in lots of maps, and some of its error messages are a bit cryptic (hopefully mine are less :). Anyway, get it here:

http://jass.sourceforge.net/download.shtml

One question: would it be useful to people to be able to enter trigger "code fragments" into a text box and have it check the syntax of the fragment? The idea would be to verify a piece of code you are using as a custom text trigger. You can sort of already do this in WorldEdit (if you disable/enable the custom text trigger, WE will tell you if there are syntax errors), but currently WE's line numbers are off (this is because it adds some text for the globals block before it performs its check), and its error messages (IMO) suck. :)

You'll also find a JASS Manual on the page above (more of a specification, not a tutorial).

magnus