Hi!

I'm new in ANTLR´ world. Id like to know how to add a rule exception. 
For example i have a rule for comments, that looks like:

COMMENT:    ( ';' | '//' ) .* NEWLINE { $channel = HIDDEN; } ;

But there is ONLY one special case where i need to catch something like: 
"//REG.........." and obviously  doesn't work because the compiler 
assume that it is another comment and hide it to the parser. how can i 
add a kind of exception to this rule that allow me to catch "//REG" and 
also other comments? thanks for any help.

Regards,

Felipe Restrepo



List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to