public Object getBlockOption(GrammarAST blockAST, String key) { String v = (String)blockAST.getBlockOption(key); if ( v!=null ) { return v; } if ( type==Grammar.LEXER ) { return defaultLexerBlockOptions.get(key); } return defaultBlockOptions.get(key); }
public Object getBlockOption(GrammarAST blockAST, String key) { String v = (String)blockAST.getBlockOption(key); if ( v!=null ) { return v; } if ( type==Grammar.LEXER ) { return defaultLexerBlockOptions.get(key); } return defaultBlockOptions.get(key); }
public Object getBlockOption(GrammarAST blockAST, String key) { String v = (String)blockAST.getBlockOption(key); if ( v!=null ) { return v; } if ( type==Grammar.LEXER ) { return defaultLexerBlockOptions.get(key); } return defaultBlockOptions.get(key); }
public Object getBlockOption(GrammarAST blockAST, String key) { String v = (String)blockAST.getBlockOption(key); if ( v!=null ) { return v; } if ( type==Grammar.LEXER ) { return defaultLexerBlockOptions.get(key); } return defaultBlockOptions.get(key); }
public int getUserMaxLookahead(int decision) { int user_k = 0; GrammarAST blockAST = nfa.grammar.getDecisionBlockAST(decision); Object k = blockAST.getBlockOption("k"); if ( k==null ) { user_k = nfa.grammar.getGrammarMaxLookahead(); return user_k; } if (k instanceof Integer) { Integer kI = (Integer)k; user_k = kI.intValue(); } else { // must be String "*" if ( k.equals("*") ) { user_k = 0; } } return user_k; }
public int getUserMaxLookahead(int decision) { int user_k = 0; GrammarAST blockAST = nfa.grammar.getDecisionBlockAST(decision); Object k = blockAST.getBlockOption("k"); if ( k==null ) { user_k = nfa.grammar.getGrammarMaxLookahead(); return user_k; } if (k instanceof Integer) { Integer kI = (Integer)k; user_k = kI.intValue(); } else { // must be String "*" if ( k.equals("*") ) { user_k = 0; } } return user_k; }
public int getUserMaxLookahead(int decision) { int user_k = 0; GrammarAST blockAST = nfa.grammar.getDecisionBlockAST(decision); Object k = blockAST.getBlockOption("k"); if ( k==null ) { user_k = nfa.grammar.getGrammarMaxLookahead(); return user_k; } if (k instanceof Integer) { Integer kI = (Integer)k; user_k = kI; } else { // must be String "*" if ( k.equals("*") ) { user_k = 0; } } return user_k; }
public int getUserMaxLookahead(int decision) { int user_k = 0; GrammarAST blockAST = nfa.grammar.getDecisionBlockAST(decision); Object k = blockAST.getBlockOption("k"); if ( k==null ) { user_k = nfa.grammar.getGrammarMaxLookahead(); return user_k; } if (k instanceof Integer) { Integer kI = (Integer)k; user_k = kI; } else { // must be String "*" if ( k.equals("*") ) { user_k = 0; } } return user_k; }
d.dfa.nfa.grammar.getDecisionBlockAST(d.dfa.decisionNumber); if ( blockAST!=null ) { String greedyS = (String)blockAST.getBlockOption("greedy"); if ( greedyS!=null && greedyS.equals("true") ) explicitlyGreedy = true;
d.dfa.nfa.grammar.getDecisionBlockAST(d.dfa.decisionNumber); if ( blockAST!=null ) { String greedyS = (String)blockAST.getBlockOption("greedy"); if ( greedyS!=null && greedyS.equals("true") ) explicitlyGreedy = true;
d.dfa.nfa.grammar.getDecisionBlockAST(d.dfa.decisionNumber); if ( blockAST!=null ) { String greedyS = (String)blockAST.getBlockOption("greedy"); if ( greedyS!=null && greedyS.equals("true") ) explicitlyGreedy = true;