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

Martin Van Aken martin.vanaken at 8thcolor.com
Thu Jun 7 23:49:57 PDT 2012


Hello Jim,
Thanks for the kind help, I'll take a look there, between your work and the
existing grammar, I should be able to get something working.

Martin

On 7 June 2012 05:10, Jim Idle <jimi at temporal-wave.com> wrote:

> 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.
>
> Jim
>
> -----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
> colons.
>
> 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 ?
>
> Thanks,
>
> Martin
> --
> 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
> 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
>



-- 
Mobile : +32 486 899 652
Company website : www.8thcolor.com
Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken>


More information about the antlr-interest mailing list