public class Terminal extends Symbol
-+Symbol| +--+ Terminal - Lexical Symbol (i.e. number, id '+') | | | +--ErrorToken- Lexical Symbol declared with %error | +--NonTerminal- Syntactical symbol (i.e. Expression, Statement)
associativity, count, fullName, id, name, precedence, token, type, variable| Constructor and Description |
|---|
Terminal(NonTerminal nonTerminal)
Convert a non-terminal to a terminal (as part of the grammar analysis,
when an element has not been declared, a warning will be raised and then
declared as a terminal.
|
Terminal(String name)
Construct one non terminal
|
computeVariable, equals, getAssociativity, getCount, getFullName, getId, getName, getPrecedence, getToken, getType, getVariable, isIdentifier, setAssociativity, setCount, setFullName, setId, setName, setPrecedence, setToken, setType, toStringpublic Terminal(String name)
name - is the name of the non terminalpublic Terminal(NonTerminal nonTerminal)
nonTerminal - is the existing non terminal.Copyright © 2017. All rights reserved.