[antlr-interest] matching identifiers in JavaLexer
Doug Orleans
dougo at ccs.neu.edu
Sun Jan 5 23:00:34 PST 2003
Hi, I just switched over to ANTLR after a long time with JavaCC. Open
source rules!
Anyway, in the sample Java grammar provided with ANTLR (in
examples/java/java/java.g), the IDENT rule probably ought to use
java.lang.Character.isJavaIdentifierStart(char) and
java.lang.Character.isJavaIdentifierPart(char).
I just ran across them myself, and they look useful for Unicode
lexing.
--Doug Orleans
Northeastern University
dougo at ccs.neu.edu
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list