[antlr-interest] antlrdev woes

Jamie Briant jbriant at highmoonstudios.com
Wed Nov 29 15:11:05 PST 2006


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