oops.parser
Class GoalDebugger
java.lang.Object
|
+--oops.parser.GoalAdapter
|
+--oops.parser.GoalDebugger
- public class GoalDebugger
- extends GoalAdapter
trivial implementation with trace.
Field Summary |
protected int |
count
|
protected java.lang.String |
name
|
Method Summary |
java.lang.Object |
reduce()
concludes rule recognition. |
void |
shift(Goal sender,
java.lang.Object node)
presents result of reduction. |
void |
shift(Lit sender,
java.lang.Object node)
presents result of scanning. |
void |
shift(Token sender,
java.lang.Object node)
presents result of scanning. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
count
protected int count
name
protected java.lang.String name
GoalDebugger
public GoalDebugger()
GoalDebugger
public GoalDebugger(java.lang.String name)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
shift
public void shift(Goal sender,
java.lang.Object node)
- Description copied from interface: Goal
- presents result of reduction.
- Overrides:
- shift in class GoalAdapter
- Tags copied from interface: Goal
- Parameters:
sender
- just received reduce().value
- was created by sender.
shift
public void shift(Token sender,
java.lang.Object node)
- Description copied from interface: Goal
- presents result of scanning.
- Overrides:
- shift in class GoalAdapter
- Tags copied from interface: Goal
- Parameters:
sender
- just matched input.value
- was created by sender.
shift
public void shift(Lit sender,
java.lang.Object node)
- Description copied from interface: Goal
- presents result of scanning.
- Overrides:
- shift in class GoalAdapter
- Tags copied from interface: Goal
- Parameters:
sender
- just matched input.value
- was created by sender.
reduce
public java.lang.Object reduce()
- Description copied from interface: Goal
- concludes rule recognition.
- Overrides:
- reduce in class GoalAdapter
- Tags copied from interface: Goal
- Returns:
- generated (sub-)tree.