Eliminate debug and dfa_debug overhead in LexerATNSimulator by making them compile-time constants

This commit is contained in:
Sam Harwell 2012-10-29 13:23:48 -05:00
parent 7bf50c8263
commit f554a2ed4f
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ import java.io.OutputStream;
/** "dup" of ParserInterpreter */
public class LexerATNSimulator extends ATNSimulator {
public static boolean debug = false;
public static boolean dfa_debug = false;
public static final boolean debug = false;
public static final boolean dfa_debug = false;
public static final int MIN_DFA_EDGE = 0;
public static final int MAX_DFA_EDGE = 127; // forces unicode to stay in ATN