Home | History | Annotate | Download | only in analysis

Lines Matching refs:alt

98 	/** Track the predicates for each alt per DFA state;
99 * more than one DFA state might have syntactically ambig alt prediction.
100 * Maps DFA state to another map, mapping alt number to a
108 * whole alt uncovered. This maps DFA state to the set of alts
121 /** If decision with > 1 alt has recursion in > 1 alt, it's (likely) nonregular
225 /** Found recursion in > 1 alt */
282 * that for this DFA state, that alt is disabled. There may be other
283 * accept states for that alt that make an alt reachable.
338 * NFA state of the first nondeterministic alt. Imagine (A|B|A|A):
355 * example can get to all ambig paths. Must isolate for each alt (hence,
356 * the extra state beginning each alt in my NFA structures). Here,
360 int alt,
366 for (int a=firstAlt; a<=alt; a++) {
372 // add first state of actual alt
373 NFAState altStart = dfa.nfa.grammar.getNFAStateForAltOfDecision(nfaStart,alt);
387 * alt of the decision. Given a DFA state, what is the semantic
388 * predicate context for a particular alt.
390 public SemanticContext getSemanticContextForAlt(DFAState d, int alt) {
395 return (SemanticContext)altToPredMap.get(Utils.integer(alt));
398 /** At least one alt refs a sem or syn pred */
438 // first strip last alt from disableAlts if it's wildcard
497 /** Get the last disabled alt number and check in the grammar to see
498 * if that alt is a simple wildcard. If so, treat like an else clause
499 * and don't emit the error. Strip out the last alt if it's wildcard.
517 //System.out.println("last alt is "+lastAltAST.toStringTree());
518 // if last alt looks like ( ALT . <end-of-alt> ) then wildcard
519 // Avoid looking at optional blocks etc... that have last alt
521 // ( BLOCK ( ALT 'else' statement <end-of-alt> ) <end-of-block> )
536 // Goal: create a map from alt to map<target,List<callsites>>
539 // track a single problem DFA state for each alt
546 // walk each alt with recursion overflow problems and generate error
580 Integer altI = Utils.integer(c.alt);
594 // track one problem DFA state per alt
897 /** From an alt number associated with artificial Tokens rule, return
898 * the name of the token that is associated with that alt.
900 public String getTokenNameForTokensRuleAlt(int alt) {
903 dfa.nfa.grammar.getNFAStateForAltOfDecision(decisionState,alt);
908 //System.out.println("alt = "+decisionLeft.getEnclosingRule());