Class shaperGrammarHandler

java.lang.Object
shaperCompiler.shaperGrammarHandler

public class shaperGrammarHandler
extends java.lang.Object
The Class shaperGrammarHandler.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static int ERR_ON_SYNTAX
    The Constant ERR_ON_SYNTAX.
    (package private) java.util.List<ShaperError> errorList
    The error list.
    static int LAST_SYNTAX_ERROR
    The Constant LAST_SYNTAX_ERROR.
    (package private) org.antlr.runtime.TokenStream lexerStream
    The lexer stream.
    (package private) Shape s
    The s.
    static int SEM_MAX_COORD
    The Constant SEM_MAX_COORD.
    static int SEM_RECT_PERPEN
    The Constant SEM_RECT_PERPEN.
    static int SEM_TRIANG_INEQ
    The Constant SEM_TRIANG_INEQ.
    static int TOKEN_ERROR
    The Constant TOKEN_ERROR.
    static int UNDEFINED
    The Constant UNDEFINED.
  • Constructor Summary

    Constructors 
    Constructor Description
    shaperGrammarHandler​(org.antlr.runtime.TokenStream ls)
    Instantiates a new shaper grammar handler.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String conversion()
    Conversion.
    void createShape​(Shape in, Shape f)
    Creates the shape.
    java.util.List<ShaperError> getErrorList()
    Gets the error list.
    Shape getS()
    Gets the s.
    (package private) void handleError​(java.lang.String[] tokenNames, org.antlr.runtime.RecognitionException e, java.lang.String h, java.lang.String m)
    Handle error.
    void printShape()
    Prints the shape.
    void semanticErrorHandler​(int code, org.antlr.runtime.Token tk)
    Semantic error handler.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait