Am Thursday 07 May 2009 14:10:22 schrieb Thomas Dill:
>
>
> grammar FexParser;
>
> options {k=3; backtrack=true; memoize=true;}
>
> report    :    (comment | text | NEWLINE)+ ;
>
>
> comment   :    (COMMENT_START ~(NEWLINE))* ;
I think this does only read one "-*" and the next character (not till end of 
line), then it wants to read COMMENT_START again 

how is (no time to try it now):
 comment   :    COMMENT_START (~(NEWLINE))* NEWLINE;

>
> text      :    (~(COMMENT_START | NEWLINE))+;


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

Reply via email to