Why doesn't my definition of string or comment does not match all characters in my input or why aren't my tokens defined by string literals matched by the lexer?

Terence Parr

Set the char vocabulary to include all characters in your input stream. Usually, you want charVocab='3'..'377'; in the lexer options section.

Make sure that you have not turned off literals testing with testLiterals=false.