public abstract class symbol extends Object
terminal, 
non_terminal| Modifier and Type | Field and Description | 
|---|---|
| protected int | _indexIndex of this symbol (terminal or non terminal) in the parse tables. | 
| protected String | _nameString for the human readable name of the symbol. | 
| protected String | _stack_typeString for the type of object used for the symbol on the parse stack. | 
| protected int | _use_countCount of how many times the symbol appears in productions. | 
| Constructor and Description | 
|---|
| symbol(String nm)Constructor with default type. | 
| symbol(String nm,
      String tp)Full constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | index()Index of this symbol (terminal or non terminal) in the parse tables. | 
| abstract boolean | is_non_term()Indicate if this is a non-terminal. | 
| String | name()String for the human readable name of the symbol. | 
| void | note_use()Increment the use count. | 
| String | stack_type()String for the type of object used for the symbol on the parse stack. | 
| String | toString()Convert to a string. | 
| int | use_count()Count of how many times the symbol appears in productions. | 
protected String _name
protected String _stack_type
protected int _use_count
protected int _index
public symbol(String nm, String tp)
nm - the name of the symbol.tp - a string with the type name.public symbol(String nm)
nm - the name of the symbol.public String name()
public String stack_type()
public int use_count()
public void note_use()
public int index()
public abstract boolean is_non_term()
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.