[antlr-interest] Unterminated quotes and MismatchedTokenException....

Patrick Niemeyer pat at pat.net
Thu Dec 9 13:37:53 PST 2010


In my C/Java text when I have an unterminated quote I get a MismatchedTokenException that has a position pointing to the expected token location, which is usually the end of file...  Is there an easy way to capture the starting token of the node that it was trying to produce?  i.e. a way to point back to the opening quote? Or do you just normally backtrack through the text and deal with this externally?


thanks,
Pat



More information about the antlr-interest mailing list