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.


Method Summary
 ParserInterpreter getParserInterpreter()
          Gets the ParserInterpreter.
 void notify(Symbol token)
          Notifies the Parser that a new Symbol (token) has been discovered.
 void setParserInterpreter(ParserInterpreter interpreter)
          Sets the ParserInterpreter.
 
Methods inherited from interface org.inxar.syntacs.translator.lr.LRTranslationComponent
getAuditor, getInput, getLRTranslatorGrammar, getProperties, initialize, reset, setAuditor, setInput, setLRTranslatorGrammar, setProperties
 

Method Detail

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.