Grammar g = new Grammar(
"lexer grammar t;\n"+
"A : {;}'a'..'z' | ';' | '0'..'9' ;");
g.buildNFA();
g.createLookaheadDFAs(false);
DFA dfa = g.getLookaheadDFA(1);
checkPrediction(dfa,"a",1);
checkPrediction(dfa,"q",1);
checkPrediction(dfa,"z",1);
checkPrediction(dfa,";",2);
checkPrediction(dfa,"9",3);