Package com.aquima.interactions.java_cup
Class Symbol
java.lang.Object
com.aquima.interactions.java_cup.Symbol
- Direct Known Subclasses:
ComplexSymbolFactory.ComplexSymbol
,ParserSymbol
Defines the Symbol class, which is used to represent all terminals and nonterminals while parsing. The lexer should
pass CUP Symbols and CUP returns a Symbol.
- Version:
- last updated: 7/3/96
- Author:
- Frank Flannery CHECKSTYLE:OFF
-
Field Details
-
sym
public int symThe symbol number of the terminal or non terminal being represented -
parse_state
public int parse_stateThe parse state to be recorded on the parse stack with this symbol. This field is for the convenience of the parser and shouldn't be modified except by the parser. -
left
public int leftThe data passed to parser -
right
public int right -
value
-
-
Constructor Details
-
Symbol
-
Symbol
-
Symbol
Constructor for l,r values -
Symbol
Constructor for no l,r values -
Symbol
public Symbol(int id, int l, int r) Constructor for no value -
Symbol
public Symbol(int sym_num) Constructor for no value or l,r
-
-
Method Details