[antlr-interest] Pick a ECMAScript grammar - virtual semi colon

Jim Idle jimi at temporal-wave.com
Wed Jun 6 20:10:44 PDT 2012

For an example if dealing with virtual line endings, download the source
code for the JavaFX compiler and find the parser grammar. I deal with the
same issue (perhaps different conditions for the SEMI being optional) and
you should be able to steal that bit of code.


-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Martin Van Aken
Sent: Wednesday, June 06, 2012 2:45 PM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Pick a ECMAScript grammar - virtual semi colon

Hello all,
First of all thanks to Terence Parr and all contributors for antlr & the
impressive grammar list. It's becoming a major asset for our startup. My
question relates to ECMAScript grammars. I've seen than multiple exists,
and one of the more dreaded aspect of (ECMA|Java)Script parsing is the
"virtual semi colon" problem. I've made my first test with the one
"highlighted", from Chris Lambrou, and I am now looking at the one from
Patrick Hulsmeijer (http://research.xebic.com/es3/) that seems to manage
the "virtual semi colon" problems. My first tests with the "Lambrou"
grammar shown some problems related to whether or not I have the semi

Does anyone on this list has experience with parsing ECMAScript using
antlr (I did some search on the archives, but most posts on this topics
are 2+ years old) ? If yes, with which grammar ?


Company website : www.8thcolor.com
Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken>

List: http://www.antlr.org/mailman/listinfo/antlr-interest

More information about the antlr-interest mailing list