interp DFA shouldn't be static

This commit is contained in:
Terence Parr 2012-09-29 16:51:17 -07:00
parent 1e3d02314f
commit ebe9cd245e
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ public class LexerInterpreter implements TokenSource {
/** How to create token objects */
protected TokenFactory<?> _factory = CommonTokenFactory.DEFAULT;
protected static final DFA[] _decisionToDFA = new DFA[1];
protected static final PredictionContextCache _sharedContextCache =
protected final DFA[] _decisionToDFA = new DFA[1];
protected final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public LexerInterpreter(LexerGrammar g, String inputString) {