[antlr-interest] ANTLR V3 parser syntax for ~

Ari Steinberg Ari.Steinberg at EMBARCADERO.COM
Mon Jun 26 13:27:58 PDT 2006


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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060626/44f1ddff/attachment.html


More information about the antlr-interest mailing list