[antlr-interest] Grammar handling of whitespaces
Gavin Lambert
antlr at mirality.co.nz
Thu Feb 7 10:57:05 PST 2008
At 05:28 8/02/2008, Shawn Poulson wrote:
>In boost::spirit, they utilize a directive "lexeme_d[]" that
>surrounds parser references that are not processed by the
>skip parser (in this case, the WS rule), thereby enforcing
>no whitespace inbetween. e.g. "lexeme_d[ 'T' >> int_p >>
>':' >> int_p ]" is valid in spirit.
>Maybe ANTLR could use an equivalent directive?
Umm, yes, that's called "a lexer rule".
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.21/1265 - Release Date: 7/02/2008 11:17
More information about the antlr-interest
mailing list