At 08:50 10/07/2009, Natan wrote: >STRING > : '"' ( '\"' | ~('"') )* '"';
ANTLR parses backslashes as escape sequences. So you really should be using this instead: STRING : '"' ( '\\' '"' | ~'"' )* '"' ; >I am aware that the debug and interpreter trees are not the same, >and that the interpreter does not support some things like >actions etc, but still this simple syntax should work right? I've usually found the interpreter to be unreliable even without getting into actions and predicates. It's usually best to just pretend it doesn't exist, and use a combination of the debugger, unit tests, and the main code instead. 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 -~----------~----~----~----~------~----~------~--~---