Class 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 Detail

      • 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
    • Method Detail

      • 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