stefy
Class ParserX
java.lang.Object
|
+--stefy.ParserX
- public class ParserX
- extends java.lang.Object
- implements DDinterface
ParserX class (DD) is used for DD of the objects of class Parser.
Method Summary |
int |
cback(int id,
int i1,
int i2,
java.lang.Object o1)
|
int |
cback(int id,
java.lang.Object p2)
Generic boolan callback with two parameters: the first is
integer. |
Parser |
getParser()
|
VariableX |
parse(java.lang.String s)
|
java.lang.String |
pChartToString()
Returns the string representation of the passive chart. |
void |
setTrace(int t)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ParserX
public ParserX(Interpreter i,
ChartX px,
GrammarX gx)
- Creates a new instance of ParserX.
- Parameters:
p
- the object parseri
- the interpreter associated with the parser; can be null
setTrace
public void setTrace(int t)
getParser
public Parser getParser()
parse
public VariableX parse(java.lang.String s)
cback
public int cback(int id,
java.lang.Object p2)
- Generic boolan callback with two parameters: the first is
integer.
- Specified by:
- cback in interface DDinterface
- Parameters:
id
- the type of call backp2
- the second parameter- Returns:
- depends on context
cback
public int cback(int id,
int i1,
int i2,
java.lang.Object o1)
- Specified by:
- cback in interface DDinterface
pChartToString
public java.lang.String pChartToString()
- Returns the string representation of the passive chart.
- Returns:
- the string representation