Michael wrote:
You cannot do this because you are trying to take the inverse of a rule and not a set. It would need to be ~(NLCHARS).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; Jim --~--~---------~--~----~------------~-------~--~----~ 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