Class shaperGrammarParser

java.lang.Object
org.antlr.runtime.BaseRecognizer
org.antlr.runtime.Parser
shaperCompiler.shaperGrammarParser

public class shaperGrammarParser
extends org.antlr.runtime.Parser
The Class shaperGrammarParser.
  • Field Details

  • Constructor Details

    • shaperGrammarParser

      public shaperGrammarParser​(org.antlr.runtime.TokenStream input)
      Instantiates a new shaper grammar parser.
      Parameters:
      input - the input
    • shaperGrammarParser

      public shaperGrammarParser​(org.antlr.runtime.TokenStream input, org.antlr.runtime.RecognizerSharedState state)
      Instantiates a new shaper grammar parser.
      Parameters:
      input - the input
      state - the state
    • shaperGrammarParser

      public shaperGrammarParser​(java.lang.String fileIn) throws java.io.FileNotFoundException, java.io.IOException
      Instantiates a new shaper grammar parser.
      Parameters:
      fileIn - the file in
      Throws:
      java.io.FileNotFoundException - the file not found exception
      java.io.IOException - Signals that an I/O exception has occurred.
  • Method Details

    • getDelegates

      public org.antlr.runtime.Parser[] getDelegates()
      Gets the delegates.
      Returns:
      the delegates
    • getTokenNames

      public java.lang.String[] getTokenNames()
      Gets the token names.
      Overrides:
      getTokenNames in class org.antlr.runtime.BaseRecognizer
      Returns:
      the token names
    • getGrammarFileName

      public java.lang.String getGrammarFileName()
      Gets the grammar file name.
      Overrides:
      getGrammarFileName in class org.antlr.runtime.BaseRecognizer
      Returns:
      the grammar file name
    • setup

      void setup()
      Setup.
    • getHandler

      public shaperGrammarHandler getHandler()
      Gets the handler.
      Returns:
      the handler
    • getErrorList

      public java.util.List<ShaperError> getErrorList()
      Gets the error list.
      Returns:
      the error list
    • displayRecognitionError

      public void displayRecognitionError​(java.lang.String[] tokenNames, org.antlr.runtime.RecognitionException e)
      Display recognition error.
      Overrides:
      displayRecognitionError in class org.antlr.runtime.BaseRecognizer
      Parameters:
      tokenNames - the token names
      e - the e
    • shaper

      public final void shaper() throws org.antlr.runtime.RecognitionException
      Shaper.
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • circle

      public final Circle circle() throws org.antlr.runtime.RecognitionException
      Circle.
      Returns:
      the circle
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • square

      public final Square square() throws org.antlr.runtime.RecognitionException
      Square.
      Returns:
      the square
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • rectangle

      public final Rectangle rectangle() throws org.antlr.runtime.RecognitionException
      Rectangle.
      Returns:
      the rectangle
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • triangle

      public final Triangle triangle() throws org.antlr.runtime.RecognitionException
      Triangle.
      Returns:
      the triangle
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception
    • configuration

      public final Shape configuration() throws org.antlr.runtime.RecognitionException
      Configuration.
      Returns:
      the shape
      Throws:
      org.antlr.runtime.RecognitionException - the recognition exception