[antlr-interest] Lexing question
John Ridgway
john at jacelridge.com
Sat Apr 5 19:04:20 PDT 2008
So I'm parsing Java and the JLS has some interesting rules about
tokens. Specifically a Java identifier begins with a "JavaLetter"
followed by zero or more "JavaLetterOrDigit"s.
A "JavaLetter" is a character for which the method
Character.isJavaIdentifierStart(int) returns true. A
"JavaLetterOrDigit" is a character for which the method
Character.isJavaIdentifierPart(int) returns true. How do I specify
that in ANTLR (v3)?
Peace
- John
More information about the antlr-interest
mailing list