[antlr-interest] HIDDEN works in b5 - was RE: antlrdev woes

Jamie Briant jbriant at highmoonstudios.com
Wed Nov 29 16:03:46 PST 2006


My apologies. It's fixed in 3.0b5, though I'm not sure where I got b5
from because its not listed on the download page:
(http://www.antlr.org/download.html).

Jamie

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Jamie Briant
Sent: Wednesday, November 29, 2006 3:11 PM
Cc: ANTLR Interest
Subject: Re: [antlr-interest] antlrdev woes

If I use $channel=HIDDEN, the generated parser doesn't compile in C#:

{ $channel=HIDDEN; }

C:\ps3\Internal\Projects\BuildTools\VexParser\TargetGrammarv3\VexMakeTar
getsLexer.cs(131,23): error CS0103: The name 'HIDDEN' does not exist in
the current context

Also, is there an equivalent for "newline()" or is that not needed
anymore?

Thanks!

Jamie

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Terence Parr
Sent: Wednesday, November 29, 2006 11:52 AM
To: Jean Bovet
Cc: ANTLR Interest
Subject: Re: [antlr-interest] antlrdev woes


On Nov 29, 2006, at 11:44 AM, Jean Bovet wrote:

>> Hi. we recently changed channel= to $channel.  Jean, did you update
>> AW to see the new style?
>
> The current version of AW does not support the new style but the  
> upcoming b7 does. What about skip() (does it have the same  
> purpose)? I was planning to support it also.

Yep, but you should support it only if it is alone  in the action  
(i.e., without other conditionals and so on in the action).

Ter



More information about the antlr-interest mailing list