com.inxar.syntacs.analyzer.syntactic
Class StandardParser
java.lang.Object
|
+--com.inxar.syntacs.translator.lr.AbstractLRTranslationComponent
|
+--com.inxar.syntacs.analyzer.syntactic.StandardParser
- All Implemented Interfaces:
- LRTranslationComponent, Parser
- public class StandardParser
- extends AbstractLRTranslationComponent
- implements Parser
Concrete implementation of Parser
.
StandardParser
public StandardParser()
initialize
public void initialize(Object arg)
- The argument must be a
DPA
.
- Specified by:
initialize
in interface LRTranslationComponent
- Overrides:
initialize
in class AbstractLRTranslationComponent
reset
public void reset()
- Description copied from interface:
LRTranslationComponent
- Resets the internal state of the
TranslationComponent
in preparation for another
translation.
- Specified by:
reset
in interface LRTranslationComponent
- Overrides:
reset
in class AbstractLRTranslationComponent
nextRx
public void nextRx()
notify
public void notify(Symbol symbol)
throws TranslationException
- Description copied from interface:
Parser
- Notifies the
Parser
that a new Symbol
(token) has been discovered.
- Specified by:
notify
in interface Parser
setParserInterpreter
public void setParserInterpreter(ParserInterpreter interpreter)
- Description copied from interface:
Parser
- Sets the
ParserInterpreter
.
- Specified by:
setParserInterpreter
in interface Parser
getParserInterpreter
public ParserInterpreter getParserInterpreter()
- Description copied from interface:
Parser
- Gets the
ParserInterpreter
.
- Specified by:
getParserInterpreter
in interface Parser