Class ParserSymbol

java.lang.Object
com.aquima.interactions.java_cup.Symbol
com.aquima.interactions.expressions.parser.ParserSymbol

public class ParserSymbol extends Symbol
Specific symbol for all parsers in this project..
Since:
6.0
Author:
F. van der Meer, O. Kerpershoek
  • Constructor Details

    • ParserSymbol

      public ParserSymbol(String unit, int id, int line, int column, int offset, Object o)
      constructs a symbol with this data.
      Parameters:
      unit - The unit name string of the unit currently in compilation ( filename? )
      id - The ide of the symbol ( as defined in a symbol table )
      line - The line number of the file ( starting with 1 )
      column - The left character as seen from current line (starting with 0)
      offset - The global offset.
      o - Object
    • ParserSymbol

      public ParserSymbol(String name, int id, Position left, Position right, Object o)
  • Method Details

    • getLeftPosition

      public Position getLeftPosition()
    • getRightPosition

      protected Position getRightPosition()
    • getLine

      public int getLine()
    • getOffset

      public int getOffset()
    • getColumn

      public int getColumn()
    • toString

      public String toString()
      Description copied from class: Symbol
      Printing this token out. (Override for pretty-print).
      Overrides:
      toString in class Symbol