[antlr-interest] ANTLR V3 parser syntax for ~
Terence Parr
parrt at cs.usfca.edu
Mon Jun 26 13:57:19 PDT 2006
Hi Ari,
Try ( t=~STATEMENT_END {$t.setType(VALUE);} )+
Ter
On Jun 26, 2006, at 1:27 PM, Ari Steinberg wrote:
> In my antlr V2 grammar, I have this
>
>
>
> value:
>
> ( t:~( STATEMENT_END ) { #t.setType( VALUE ); } )+
>
> ;
>
>
>
> When I try to build this using ANTLR works ea9 I get the following
> error:
>
>
>
> Cannot generate the grammar because: 0:0 syntax error:
> assign.types: <AST>:62:7: unexpected AST node: ~
>
>
>
> My intent is to match anything but STATEMENT_END.
>
>
>
> Thanks,
>
>
>
> Ari
>
> From: Ari Steinberg
> Sent: Monday, June 26, 2006 4:25 PM
> To: 'antlr-interest at antlr.org'
> Subject: ANTLR V3 parser syntax for ~
>
>
>
> In my antlr V2 grammar, I have this
>
>
>
>
>
> Ari Steinberg
> Engineer Extraordinaire @
> Embarcadero Technologies
> 416-593-1585 x231
> ari.steinberg at embarcadero.com
>
>
>
>
More information about the antlr-interest
mailing list