All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java_cup.runtime.Symbol

java.lang.Object
   |
   +----java_cup.runtime.Symbol

public class Symbol
extends Object
Class Symbol what the parser expects to receive from the lexer. the token is identified as follows: sym: the symbol type parse_state: the parse state. value: is the lexical value of type Object left : is the left position in the original input file right: is the right position in the original input file


Variable Index

 o left
The data passed to parser
 o parse_state
The parse state to be recorded on the parse stack with this symbol.
 o right
The data passed to parser
 o sym
The symbol number of the terminal or non terminal being represented
 o value

Constructor Index

 o Symbol(int)
Constructor for no value or l,r
 o Symbol(int, int)
Constructor to give a start state
 o Symbol(int, int, int)
Constructor for no value
 o Symbol(int, int, int, Object)
Constructor for l,r values
 o Symbol(int, Object)
Constructor for no l,r values

Variables

 o sym
 public int sym
The symbol number of the terminal or non terminal being represented

 o parse_state
 public int parse_state
The 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.

 o left
 public int left
The data passed to parser

 o right
 public int right
The data passed to parser

 o value
 public Object value

Constructors

 o Symbol
 public Symbol(int id,
               int l,
               int r,
               Object o)
Constructor for l,r values

 o Symbol
 public Symbol(int id,
               Object o)
Constructor for no l,r values

 o Symbol
 public Symbol(int sym_num,
               int l,
               int r)
Constructor for no value

 o Symbol
 public Symbol(int sym_num)
Constructor for no value or l,r

 o Symbol
 public Symbol(int sym_num,
               int state)
Constructor to give a start state


All Packages  Class Hierarchy  This Package  Previous  Next  Index