[antlr-interest] C Runtime problem with $channel=HIDDEN and SKIP()

Jim Idle jimi at temporal-wave.com
Mon Oct 27 07:57:44 PDT 2008


On Sun, 2008-10-26 at 20:52 -0400, Buğra Gedik wrote:

> Hi (Jim),
> 
> 
> 
> With the C runtime when using $channel=HIDDEN the hidden tokens DO NOT
> appear when printing a rule with $text->chars, 


As in the text for the whole rule I presume you mean. OK - this must be
some change Ter did to Java that I did not pick up.

> whereas with the Java runtime they appear (which I assume is the
> expected behaviour). The problem can be solved by using SKIP() instead
> with the C runtime, but the SKIP function has a bug (I saw it the
> official list of bugs), it messes up the next token (includes the
> spaces).
> 
> 
> I'm using 3.1 (not 3.1.1). Any plans on fixing these? Or, are they
> fixed in 3.1.1?


I will be doing some bug fixes and catchups this week, so I will make
sure I look at both of these.

Jim
> 
> 
> Cheers,
> -bugra
> 
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081027/bf1f4dd6/attachment.html 


More information about the antlr-interest mailing list