Hey Jeff, I can't talk to the JS target, but I get to JS via a round about root. ANTLR -> Java -> JS using the GWT compiler. There are some minor changes needed for the ANTLR runtime to be GWT compatible. For 3.2 I've put these online at http://code.google.com/p/gwtified/
There is a nice project that enable the generated JS code being accessible as a JS library http://code.google.com/p/gwt-exporter/ There is quite a lot of tooling need to get this to work, but imo it's worth it. If there is interest I might invest some time, branch antlr at github, get gwt working for 3.4 and setup build support. Regards Gary On Thu, Aug 18, 2011 at 10:22 AM, Jeff Hair <[email protected]> wrote: > Hello, > > I tried generating a very simple "hello world" grammar with the JavaScript > target using v 3.4. It put out a bunch of warnings and generated invalid > code. In particular, it created a strange JS object literal like { : }. It > had the colons but not the variables or values. Is this a known issue? > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address > List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
