Class ProblemParser

java.lang.Object
org.eclipse.xtext.parser.AbstractParser
org.eclipse.xtext.parser.antlr.AbstractAntlrParser
tools.refinery.language.parser.antlr.ProblemParser
All Implemented Interfaces:
org.eclipse.xtext.parser.IParser
Direct Known Subclasses:
TokenSourceInjectingProblemParser

public class ProblemParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.xtext.parser.IParser

    org.eclipse.xtext.parser.IParser.NullImpl
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.antlr.runtime.TokenSource
    createLexer(org.antlr.runtime.CharStream stream)
     
    createParser(org.eclipse.xtext.parser.antlr.XtextTokenStream stream)
     
    protected String
     
     
    protected boolean
    Indentation aware languages do not support partial parsing since the lexer is inherently stateful.
    void
     
    protected void
    setInitialHiddenTokens(org.eclipse.xtext.parser.antlr.XtextTokenStream tokenStream)
     

    Methods inherited from class org.eclipse.xtext.parser.antlr.AbstractAntlrParser

    createNodeModelBuilder, createTokenStream, doParse, doParse, doParse, doReparse, getElementFactory, getLexerProvider, getPartialParser, getSyntaxErrorProvider, getTokenDefProvider, getUnorderedGroupHelper, parse, parse, parse, setElementFactory, setLexerProvider, setPartialParser, setSyntaxErrorProvider, setTokenDefProvider, setUnorderedGroupHelper

    Methods inherited from class org.eclipse.xtext.parser.AbstractParser

    parse, reparse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProblemParser

      public ProblemParser()
  • Method Details

    • setInitialHiddenTokens

      protected void setInitialHiddenTokens(org.eclipse.xtext.parser.antlr.XtextTokenStream tokenStream)
      Overrides:
      setInitialHiddenTokens in class org.eclipse.xtext.parser.antlr.AbstractAntlrParser
    • createLexer

      protected org.antlr.runtime.TokenSource createLexer(org.antlr.runtime.CharStream stream)
      Overrides:
      createLexer in class org.eclipse.xtext.parser.antlr.AbstractAntlrParser
    • isReparseSupported

      protected boolean isReparseSupported()
      Indentation aware languages do not support partial parsing since the lexer is inherently stateful. Override and return true if your terminal splitting is stateless.
      Overrides:
      isReparseSupported in class org.eclipse.xtext.parser.antlr.AbstractAntlrParser
    • createParser

      protected InternalProblemParser createParser(org.eclipse.xtext.parser.antlr.XtextTokenStream stream)
      Specified by:
      createParser in class org.eclipse.xtext.parser.antlr.AbstractAntlrParser
    • getDefaultRuleName

      protected String getDefaultRuleName()
      Specified by:
      getDefaultRuleName in class org.eclipse.xtext.parser.antlr.AbstractAntlrParser
    • getGrammarAccess

      public ProblemGrammarAccess getGrammarAccess()
    • setGrammarAccess

      public void setGrammarAccess(ProblemGrammarAccess grammarAccess)