|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpmp.Macroprocessor.Component
pmp.Analyzer
public final class Analyzer
Syntactic analyzer.
Title: PMP: Macroprocessor
Description: Java macroprocessor
Copyright: Copyright (c) 2005
Nested Class Summary | |
---|---|
static class |
Analyzer.State
States of syntactic analyzer. |
Field Summary | |
---|---|
protected CallStack |
callStack
Macro call stack. |
protected Analyzer.State |
synState
Current state of lexical analyzer. |
Constructor Summary | |
---|---|
Analyzer(Macroprocessor mp)
Constructs lexical analyzer. |
Method Summary | |
---|---|
void |
macroListModified(MacroListModifyEvent event)
Listener method for macro list modifications. |
void |
processInput()
Executes program. |
java.lang.String |
stateAsString()
Returns state of parser as string |
java.lang.String |
stateAsString(Analyzer.State state)
Converts integer representation of parser state to string |
java.lang.String |
toString()
Returns string representation of this object. |
Methods inherited from class pmp.Macroprocessor.Component |
---|
error, getMP, getMPAnalyzer, getMPIO, getMPIQ, getMPMacros, notice, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Analyzer.State synState
protected final CallStack callStack
Constructor Detail |
---|
public Analyzer(Macroprocessor mp)
mp
- owner of this objectMethod Detail |
---|
public java.lang.String stateAsString()
public java.lang.String stateAsString(Analyzer.State state)
state
- state of parser
public java.lang.String toString()
toString()
method of superclass and state of
parser.
toString
in class java.lang.Object
public void macroListModified(MacroListModifyEvent event)
macroListModified
in interface MacroListModifyListener
event
- event object describing modificationpublic void processInput()
this
- exception shouldn't be thrown as Writer should report errors
to InputOutput object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |