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
tben...@stud.hs-heilbronn.de



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 il-antlr-interest@googlegroups.com
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com
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

Reply via email to