congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
QuantifierAST
Code IndexAdd Tabnine to your IDE (free)

How to use
QuantifierAST
in
org.antlr.v4.tool.ast

Best Java code snippets using org.antlr.v4.tool.ast.QuantifierAST (Showing top 20 results out of 315)

origin: org.antlr/antlr4

public Loop(OutputModelFactory factory,
      GrammarAST blkOrEbnfRootAST,
      List<CodeBlockForAlt> alts)
{
  super(factory, blkOrEbnfRootAST, alts);
  boolean nongreedy = (blkOrEbnfRootAST instanceof QuantifierAST) && !((QuantifierAST)blkOrEbnfRootAST).isGreedy();
  exitAlt = nongreedy ? 1 : alts.size() + 1;
}
origin: uk.co.nichesolutions/antlr4

public Loop(OutputModelFactory factory,
      GrammarAST blkOrEbnfRootAST,
      List<CodeBlockForAlt> alts)
{
  super(factory, blkOrEbnfRootAST, alts);
  boolean nongreedy = (blkOrEbnfRootAST instanceof QuantifierAST) && !((QuantifierAST)blkOrEbnfRootAST).isGreedy();
  exitAlt = nongreedy ? 1 : alts.size() + 1;
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

public Loop(OutputModelFactory factory,
      GrammarAST blkOrEbnfRootAST,
      List<CodeBlockForAlt> alts)
{
  super(factory, blkOrEbnfRootAST, alts);
  boolean nongreedy = (blkOrEbnfRootAST instanceof QuantifierAST) && !((QuantifierAST)blkOrEbnfRootAST).isGreedy();
  exitAlt = nongreedy ? 1 : alts.size() + 1;
}
origin: io.virtdata/virtdata-lib-realer

public Loop(OutputModelFactory factory,
      GrammarAST blkOrEbnfRootAST,
      List<CodeBlockForAlt> alts)
{
  super(factory, blkOrEbnfRootAST, alts);
  boolean nongreedy = (blkOrEbnfRootAST instanceof QuantifierAST) && !((QuantifierAST)blkOrEbnfRootAST).isGreedy();
  exitAlt = nongreedy ? 1 : alts.size() + 1;
}
origin: com.tunnelvisionlabs/antlr4

public Loop(OutputModelFactory factory,
      GrammarAST blkOrEbnfRootAST,
      List<CodeBlockForAlt> alts)
{
  super(factory, blkOrEbnfRootAST, alts);
  boolean nongreedy = (blkOrEbnfRootAST instanceof QuantifierAST) && !((QuantifierAST)blkOrEbnfRootAST).isGreedy();
  exitAlt = nongreedy ? 1 : alts.size() + 1;
}
origin: org.antlr/antlr4

/**
 * From {@code (A)?} build either:
 *
 * <pre>
 *  o--A-&gt;o
 *  |     ^
 *  o----&gt;|
 * </pre>
 *
 * or, if {@code A} is a block, just add an empty alt to the end of the
 * block
 */
@Override
public Handle optional(GrammarAST optAST, Handle blk) {
  BlockStartState blkStart = (BlockStartState)blk.left;
  ATNState blkEnd = blk.right;
  preventEpsilonOptionalBlocks.add(new Triple<Rule, ATNState, ATNState>(currentRule, blkStart, blkEnd));
  boolean greedy = ((QuantifierAST)optAST).isGreedy();
  blkStart.nonGreedy = !greedy;
  epsilon(blkStart, blk.right, !greedy);
  optAST.atnState = blk.left;
  return blk;
}
origin: uk.co.nichesolutions/antlr4

/**
 * From {@code (A)?} build either:
 *
 * <pre>
 *  o--A-&gt;o
 *  |     ^
 *  o----&gt;|
 * </pre>
 *
 * or, if {@code A} is a block, just add an empty alt to the end of the
 * block
 */
@Override
public Handle optional(GrammarAST optAST, Handle blk) {
  BlockStartState blkStart = (BlockStartState)blk.left;
  ATNState blkEnd = blk.right;
  preventEpsilonOptionalBlocks.add(new Triple<Rule, ATNState, ATNState>(currentRule, blkStart, blkEnd));
  boolean greedy = ((QuantifierAST)optAST).isGreedy();
  blkStart.nonGreedy = !greedy;
  epsilon(blkStart, blk.right, !greedy);
  optAST.atnState = blk.left;
  return blk;
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * From {@code (A)?} build either:
 *
 * <pre>
 *  o--A->o
 *  |     ^
 *  o---->|
 * </pre>
 *
 * or, if {@code A} is a block, just add an empty alt to the end of the
 * block
 */
@Override
public Handle optional(GrammarAST optAST, Handle blk) {
  BlockStartState blkStart = (BlockStartState)blk.left;
  ATNState blkEnd = blk.right;
  preventEpsilonOptionalBlocks.add(new Triple<Rule, ATNState, ATNState>(currentRule, blkStart, blkEnd));
  boolean greedy = ((QuantifierAST)optAST).isGreedy();
  blkStart.nonGreedy = !greedy;
  epsilon(blkStart, blk.right, !greedy);
  optAST.atnState = blk.left;
  return blk;
}
origin: io.virtdata/virtdata-lib-realer

/**
 * From {@code (A)?} build either:
 *
 * <pre>
 *  o--A-&gt;o
 *  |     ^
 *  o----&gt;|
 * </pre>
 *
 * or, if {@code A} is a block, just add an empty alt to the end of the
 * block
 */
@Override
public Handle optional(GrammarAST optAST, Handle blk) {
  BlockStartState blkStart = (BlockStartState)blk.left;
  ATNState blkEnd = blk.right;
  preventEpsilonOptionalBlocks.add(new Triple<Rule, ATNState, ATNState>(currentRule, blkStart, blkEnd));
  boolean greedy = ((QuantifierAST)optAST).isGreedy();
  blkStart.nonGreedy = !greedy;
  epsilon(blkStart, blk.right, !greedy);
  optAST.atnState = blk.left;
  return blk;
}
origin: com.tunnelvisionlabs/antlr4

/**
 * From {@code (A)?} build either:
 *
 * <pre>
 *  o--A-&gt;o
 *  |     ^
 *  o----&gt;|
 * </pre>
 *
 * or, if {@code A} is a block, just add an empty alt to the end of the
 * block
 */
@NotNull
@Override
public Handle optional(@NotNull GrammarAST optAST, @NotNull Handle blk) {
  BlockStartState blkStart = (BlockStartState)blk.left;
  ATNState blkEnd = blk.right;
  preventEpsilonOptionalBlocks.add(Tuple.create(currentRule, blkStart, blkEnd));
  boolean greedy = ((QuantifierAST)optAST).isGreedy();
  blkStart.sll = false; // no way to express SLL restriction
  blkStart.nonGreedy = !greedy;
  epsilon(blkStart, blk.right, !greedy);
  optAST.atnState = blk.left;
  return blk;
}
origin: io.virtdata/virtdata-lib-realer

loop.nonGreedy = !((QuantifierAST)plusAST).isGreedy();
atn.defineDecisionState(loop);
LoopEndState end = newState(LoopEndState.class, plusAST);
if ( ((QuantifierAST)plusAST).isGreedy() ) {
  if (expectNonGreedy(blkAST)) {
    g.tool.errMgr.grammarError(ErrorType.EXPECTED_NON_GREEDY_WILDCARD_BLOCK, g.fileName, plusAST.getToken(), plusAST.getToken().getText());
origin: org.antlr/antlr4

loop.nonGreedy = !((QuantifierAST)plusAST).isGreedy();
atn.defineDecisionState(loop);
LoopEndState end = newState(LoopEndState.class, plusAST);
if ( ((QuantifierAST)plusAST).isGreedy() ) {
  if (expectNonGreedy(blkAST)) {
    g.tool.errMgr.grammarError(ErrorType.EXPECTED_NON_GREEDY_WILDCARD_BLOCK, g.fileName, plusAST.getToken(), plusAST.getToken().getText());
origin: uk.co.nichesolutions/antlr4

loop.nonGreedy = !((QuantifierAST)plusAST).isGreedy();
atn.defineDecisionState(loop);
LoopEndState end = newState(LoopEndState.class, plusAST);
if ( ((QuantifierAST)plusAST).isGreedy() ) {
  if (expectNonGreedy(blkAST)) {
    g.tool.errMgr.grammarError(ErrorType.EXPECTED_NON_GREEDY_WILDCARD_BLOCK, g.fileName, plusAST.getToken(), plusAST.getToken().getText());
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

loop.nonGreedy = !((QuantifierAST)plusAST).isGreedy();
atn.defineDecisionState(loop);
LoopEndState end = newState(LoopEndState.class, plusAST);
if ( ((QuantifierAST)plusAST).isGreedy() ) {
  if (expectNonGreedy(blkAST)) {
    g.tool.errMgr.grammarError(ErrorType.EXPECTED_NON_GREEDY_WILDCARD_BLOCK, g.fileName, plusAST.getToken(), plusAST.getToken().getText());
origin: io.virtdata/virtdata-lib-realer

entry.nonGreedy = !((QuantifierAST)starAST).isGreedy();
atn.defineDecisionState(entry);
LoopEndState end = newState(LoopEndState.class, starAST);
if ( ((QuantifierAST)starAST).isGreedy() ) {
  if (expectNonGreedy(blkAST)) {
    g.tool.errMgr.grammarError(ErrorType.EXPECTED_NON_GREEDY_WILDCARD_BLOCK, g.fileName, starAST.getToken(), starAST.getToken().getText());
origin: org.antlr/antlr4

entry.nonGreedy = !((QuantifierAST)starAST).isGreedy();
atn.defineDecisionState(entry);
LoopEndState end = newState(LoopEndState.class, starAST);
if ( ((QuantifierAST)starAST).isGreedy() ) {
  if (expectNonGreedy(blkAST)) {
    g.tool.errMgr.grammarError(ErrorType.EXPECTED_NON_GREEDY_WILDCARD_BLOCK, g.fileName, starAST.getToken(), starAST.getToken().getText());
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

entry.nonGreedy = !((QuantifierAST)starAST).isGreedy();
atn.defineDecisionState(entry);
LoopEndState end = newState(LoopEndState.class, starAST);
if ( ((QuantifierAST)starAST).isGreedy() ) {
  if (expectNonGreedy(blkAST)) {
    g.tool.errMgr.grammarError(ErrorType.EXPECTED_NON_GREEDY_WILDCARD_BLOCK, g.fileName, starAST.getToken(), starAST.getToken().getText());
origin: uk.co.nichesolutions/antlr4

entry.nonGreedy = !((QuantifierAST)starAST).isGreedy();
atn.defineDecisionState(entry);
LoopEndState end = newState(LoopEndState.class, starAST);
if ( ((QuantifierAST)starAST).isGreedy() ) {
  if (expectNonGreedy(blkAST)) {
    g.tool.errMgr.grammarError(ErrorType.EXPECTED_NON_GREEDY_WILDCARD_BLOCK, g.fileName, starAST.getToken(), starAST.getToken().getText());
origin: com.tunnelvisionlabs/antlr4

loop.nonGreedy = !((QuantifierAST)plusAST).isGreedy();
loop.sll = false; // no way to express SLL restriction
atn.defineDecisionState(loop);
if ( ((QuantifierAST)plusAST).isGreedy() ) {
  if (expectNonGreedy(blkAST)) {
    g.tool.errMgr.grammarError(ErrorType.EXPECTED_NON_GREEDY_WILDCARD_BLOCK, g.fileName, plusAST.getToken(), plusAST.getToken().getText());
origin: com.tunnelvisionlabs/antlr4

entry.nonGreedy = !((QuantifierAST)starAST).isGreedy();
entry.sll = false; // no way to express SLL restriction
atn.defineDecisionState(entry);
if ( ((QuantifierAST)starAST).isGreedy() ) {
  if (expectNonGreedy(blkAST)) {
    g.tool.errMgr.grammarError(ErrorType.EXPECTED_NON_GREEDY_WILDCARD_BLOCK, g.fileName, starAST.getToken(), starAST.getToken().getText());
org.antlr.v4.tool.astQuantifierAST

Most used methods

  • isGreedy

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • Kernel (java.awt.image)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now