[antlr-interest] ANTLR V3 parser syntax for ~

Ari Steinberg Ari.Steinberg at EMBARCADERO.COM
Mon Jun 26 14:22:11 PDT 2006


No dice, it's still not one bit happy.  Here's a copy of what I've got
so far, maybe you'll see something I'm not.

Cheers,
Ari

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Terence Parr
Sent: Monday, June 26, 2006 4:57 PM
To: ANTLR Interest
Subject: Re: [antlr-interest] ANTLR V3 parser syntax for ~

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
>
>
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: inifile.g
Type: application/octet-stream
Size: 1666 bytes
Desc: inifile.g
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20060626/0cb6197e/inifile.obj


More information about the antlr-interest mailing list