I have been using ANTLR to generate a parser + tree grammar for a mark up language with Java target which works fine. Now I am trying to get the target in JavaScript to use it i
You should use the latest version (3.3), in previous versions the javascript target was not properly integrated. There still some bugs, but you can see a working example with some guidance and links on
http://blog.barvinograd.com/2011/03/online-function-grapher-formula-parser-part-2/