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 Summary
Constructors Constructor Description ParserSymbol(String unit, int id, int line, int column, int offset, Object o)
constructs a symbol with this data.ParserSymbol(String name, int id, Position left, Position right, Object o)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
Position
getLeftPosition()
int
getLine()
int
getOffset()
protected Position
getRightPosition()
String
toString()
Printing this token out.
-
-
-
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
-
-