congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CommonTokenStream.LB
Code IndexAdd Tabnine to your IDE (free)

How to use
LB
method
in
org.antlr.v4.runtime.CommonTokenStream

Best Java code snippets using org.antlr.v4.runtime.CommonTokenStream.LB (Showing top 5 results out of 315)

origin: org.antlr/antlr4-runtime

  @Override
  public Token LT(int k) {
    //System.out.println("enter LT("+k+")");
    lazyInit();
    if ( k == 0 ) return null;
    if ( k < 0 ) return LB(-k);
    int i = p;
    int n = 1; // we know tokens[p] is a good one
    // find k good tokens
    while ( n<k ) {
      // skip off-channel tokens, but make sure to not look past EOF
      if (sync(i + 1)) {
        i = nextTokenOnChannel(i + 1, channel);
      }
      n++;
    }
//        if ( i>range ) range = i;
    return tokens.get(i);
  }

origin: com.tunnelvisionlabs/antlr4-runtime

  @Override
  public Token LT(int k) {
    //System.out.println("enter LT("+k+")");
    lazyInit();
    if ( k == 0 ) return null;
    if ( k < 0 ) return LB(-k);
    int i = p;
    int n = 1; // we know tokens[p] is a good one
    // find k good tokens
    while ( n<k ) {
      // skip off-channel tokens, but make sure to not look past EOF
      if (sync(i + 1)) {
        i = nextTokenOnChannel(i + 1, channel);
      }
      n++;
    }
//        if ( i>range ) range = i;
    return tokens.get(i);
  }
 
origin: uk.co.nichesolutions/antlr4-runtime

  @Override
  public Token LT(int k) {
    //System.out.println("enter LT("+k+")");
    lazyInit();
    if ( k == 0 ) return null;
    if ( k < 0 ) return LB(-k);
    int i = p;
    int n = 1; // we know tokens[p] is a good one
    // find k good tokens
    while ( n<k ) {
      // skip off-channel tokens, but make sure to not look past EOF
      if (sync(i + 1)) {
        i = nextTokenOnChannel(i + 1, channel);
      }
      n++;
    }
//        if ( i>range ) range = i;
    return tokens.get(i);
  }

origin: com.impetus.fabric/fabric-jdbc-driver-shaded

  @Override
  public Token LT(int k) {
    //System.out.println("enter LT("+k+")");
    lazyInit();
    if ( k == 0 ) return null;
    if ( k < 0 ) return LB(-k);
    int i = p;
    int n = 1; // we know tokens[p] is a good one
    // find k good tokens
    while ( n<k ) {
      // skip off-channel tokens, but make sure to not look past EOF
      if (sync(i + 1)) {
        i = nextTokenOnChannel(i + 1, channel);
      }
      n++;
    }
//        if ( i>range ) range = i;
    return tokens.get(i);
  }

origin: io.virtdata/virtdata-lib-realer

  @Override
  public Token LT(int k) {
    //System.out.println("enter LT("+k+")");
    lazyInit();
    if ( k == 0 ) return null;
    if ( k < 0 ) return LB(-k);
    int i = p;
    int n = 1; // we know tokens[p] is a good one
    // find k good tokens
    while ( n<k ) {
      // skip off-channel tokens, but make sure to not look past EOF
      if (sync(i + 1)) {
        i = nextTokenOnChannel(i + 1, channel);
      }
      n++;
    }
//        if ( i>range ) range = i;
    return tokens.get(i);
  }

org.antlr.v4.runtimeCommonTokenStreamLB

Popular methods of CommonTokenStream

  • <init>
    Constructs a new CommonTokenStream using the specified token source and filtering tokens to the spec
  • getTokens
  • fill
  • get
  • getHiddenTokensToLeft
  • size
  • LA
  • getHiddenTokensToRight
  • reset
  • seek
  • getText
  • getTokenSource
  • getText,
  • getTokenSource,
  • lazyInit,
  • nextTokenOnChannel,
  • previousTokenOnChannel,
  • sync,
  • LT,
  • consume,
  • index

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • getSystemService (Context)
  • setScale (BigDecimal)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Notification (javax.management)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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