org.inxar.syntacs.analyzer.syntactic
Interface Parser
- All Superinterfaces:
- LRTranslationComponent
- All Known Implementing Classes:
- StandardParser
- public interface Parser
- extends LRTranslationComponent
The Parser
is responsible for managing the
construction of the parse tree; to do so it interacts with the
LexerInterpreter
(presumably) and the
ParserInterpreter
. The LexerInterpreter
is the input terminal (token) source, and the
ParserInterpreter
is the nonterminal source. The
Parser
delegates to the ParserInterpreter
when a reduction need be made.
notify
public void notify(Symbol token)
throws TranslationException
- Notifies the
Parser
that a new Symbol
(token) has been discovered.
setParserInterpreter
public void setParserInterpreter(ParserInterpreter interpreter)
- Sets the
ParserInterpreter
.
getParserInterpreter
public ParserInterpreter getParserInterpreter()
- Gets the
ParserInterpreter
.