public class ErrorToken extends Terminal
The error recovery system is based on an algorithm that drops stack states until one with a proper error token transition is found.
Other than that, error tokens are just another non-terminal symbol.
Symbols have the following hierarchy:
-+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 |
|---|
ErrorToken(String name) |
computeVariable, equals, getAssociativity, getCount, getFullName, getId, getName, getPrecedence, getToken, getType, getVariable, isIdentifier, setAssociativity, setCount, setFullName, setId, setName, setPrecedence, setToken, setType, toStringpublic ErrorToken(String name)
Copyright © 2017. All rights reserved.