Examples of StarLoopEntryState


Examples of org.antlr.v4.runtime.atn.StarLoopEntryState

  public Handle star(@NotNull GrammarAST starAST, @NotNull Handle elem) {
    StarBlockStartState blkStart = (StarBlockStartState)elem.left;
    BlockEndState blkEnd = (BlockEndState)elem.right;
    preventEpsilonClosureBlocks.add(new Triple<Rule, ATNState, ATNState>(currentRule, blkStart, blkEnd));

    StarLoopEntryState entry = newState(StarLoopEntryState.class, starAST);
    entry.nonGreedy = !((QuantifierAST)starAST).isGreedy();
    atn.defineDecisionState(entry);
    LoopEndState end = newState(LoopEndState.class, starAST);
    StarLoopbackState loop = newState(StarLoopbackState.class, starAST);
    entry.loopBackState = loop;
View Full Code Here

Examples of org.antlr.v4.runtime.atn.StarLoopEntryState

           GrammarAST blkOrEbnfRootAST,
           List<CodeBlockForAlt> alts)
  {
    super(factory, blkOrEbnfRootAST, alts);
    loopLabel = factory.getGenerator().getTarget().getLoopLabel(blkOrEbnfRootAST);
    StarLoopEntryState star = (StarLoopEntryState)blkOrEbnfRootAST.atnState;
    loopBackStateNumber = star.loopBackState.stateNumber;
    decision = star.decision;
  }
View Full Code Here

Examples of org.antlr.v4.runtime.atn.StarLoopEntryState

/** */
public class LL1StarBlockSingleAlt extends LL1Loop {
  public LL1StarBlockSingleAlt(OutputModelFactory factory, GrammarAST starRoot, List<CodeBlockForAlt> alts) {
    super(factory, starRoot, alts);

    StarLoopEntryState star = (StarLoopEntryState)starRoot.atnState;
    loopBackStateNumber = star.loopBackState.stateNumber;
    this.decision = star.decision;
    IntervalSet[] altLookSets = factory.getGrammar().decisionLOOK.get(decision);
    assert altLookSets.length == 2;
    IntervalSet enterLook = altLookSets[0];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.