incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Zwaga <>
Subject Re: [gosh] On the sad tale of BNF and optional semicolons
Date Wed, 22 Feb 2012 19:18:58 GMT
> > I seem to remember reading somewhere that Falcon uses a grammar based
> approach as well to parsing  AS3. I'm wondering how they're pulling it off
> then...
> Falcon currently uses an ANTLR 2 grammar to parse ActionScript. We've been
> improving the grammar that was previously used for code intelligence in
> Flash Builder. We expect to move to ANTLR 3 at some point.
> We handle semicolons by calling a Java method we wrote,
> matchOptionalSemicolon(), in the actions of various productions. We don't
> try to represent the optional semicolons in the productions of the grammar
> itself.
> - Gordon Smith, Falcon team, Adobe

Al right, thanks for clearing that up Gordon!



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message