JavaのANTLR定義を読む2
ソースhttp://www.antlr.org/grammar/java/java.g
class JavaLexer extends Lexer; options { exportVocab=Java; // この語彙を"Java"と呼ぶ testLiterals=false; // リテラルのテストをしない(よく判らん) k=4; // 最大4文字の先読みをする charVocabulary='\u0003'..'\uFFFF'; // without inlining some bitset tests, couldn't do unicode; // I need to make ANTLR generate smaller bitsets; see // bottom of JavaLexer.java codeGenBitsetTestThreshold=20; }