- Direct Known Subclasses:
- IdlSymbol, token
public class symbol
extends Object
This class represents a (terminal or non-terminal) symbol that, among
other things can be placed on the parse stack. Symbols are used to
keep track of state on the parse stack. The symbol currently on top
of the stack contains the current state in the parse_state field.
In addition to the parse_state field, symbols also maintain a record
of the symbol number that they represent in the sym field. Finally,
symbols are used contain to any attributes used by semantic action (this
is done via fields added in subclasses -- see for example, int_token and
str_token).
- Version:
- last updated: 11/25/95
- Author:
- Scott Hudson
- See Also:
token
,
int_token
,
str_token