Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Symbol Class Reference

List of all members.

Public Methods

 Symbol (int sym_num)
 Symbol (int id, int l, int r)
 Symbol (int id, int l, int r, Object o)
 Symbol (int id, Object o)
String toString ()

Public Attributes

int sym
int parse_state
int left
int right
Object value

Private Methods

 Symbol (int sym_num, int state)

Private Attributes

boolean used_by_parser = false

Detailed Description

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

Definition at line 56 of file Symbol.java.


Member Data Documentation

int Symbol::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.

Definition at line 69 of file Symbol.java.

int Symbol::sym
 

The symbol number of the terminal or non terminal being represented

Definition at line 61 of file Symbol.java.

boolean Symbol::used_by_parser = false [private]
 

This allows us to catch some errors caused by scanners recycling symbols. For the use of the parser only. [CSA, 23-Jul-1999]

Definition at line 72 of file Symbol.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:22:17 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001