Tabnine Logo
TokenStreamSelector.retry
Code IndexAdd Tabnine to your IDE (free)

How to use
retry
method
in
antlr.TokenStreamSelector

Best Java code snippets using antlr.TokenStreamSelector.retry (Showing top 3 results out of 315)

origin: net.sourceforge.jburg/jburg

public void uponEOF() throws TokenStreamException, CharStreamException
{
  popNestedLexer();
  try
  {
    selector.pop(); // return to old lexer/stream
    selector.retry();
  }
  catch (java.util.NoSuchElementException e)
  {
    // No including stream, return EOF
  }
}
origin: net.sourceforge.jburg/jburg

/**
 *  Push a macro-processing nestedLexer onto the linked list of nestedLexers.
 */
public void pushMacroLexer(JBurgANTLRLexer macro_lexer)
throws antlr.TokenStreamRetryException
{
  macro_lexer.mainSourceFile = getCurrent().mainSourceFile;
  pushNestedLexer(macro_lexer);
  this.selector.push(macro_lexer);
  this.selector.retry();
}
origin: net.sourceforge.jburg/jburg

selector.retry();
antlrTokenStreamSelectorretry

Javadoc

Abort recognition of current Token and try again. A stream can push a new stream (for include files for example, and then retry(), which will cause the current stream to abort back to this.nextToken(). this.nextToken() then asks for a token from the current stream, which is the new "substream."

Popular methods of TokenStreamSelector

  • select
  • <init>
  • addInputStream
  • pop
  • push
  • getStream
  • nextToken

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JButton (javax.swing)
  • Best IntelliJ 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