Hi
I am using ANTLR V 2, and in the code when I change from $channel=SKIP to
$channel=HIDDEN and I get a error
Token hidden cannot be resolved.
Can you please let me know how this can be resolved.
On Sun, Apr 19, 2009 at 10:48 PM, Tilman Bender <
[email protected]> wrote:
> Hi,
> The problem is, that you use skip() where you should actually use something
> like:
>
> : "//" (~('\r'|'\n'))* {$channel=HIDDEN;}
>
> This way the comment will still be acessible in the parser:
>
> http://www.antlr.org/wiki/pages/viewpage.action?pageId=557063
>
> HTH
>
> Tilman Bender
> Student des Software Engineering
> Hochschule Heilbronn
> [email protected]
>
>
>
> Am 19.04.2009 um 16:28 schrieb vasanthi a:
>
> SL_COMMENT
>
> : "//" (~('\r'|'\n'))* {$setType(Token.SKIP);}
> ;
>
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address