Jet.Parser
Class ActiveEdge
java.lang.Object
Jet.Parser.Edge
Jet.Parser.ActiveEdge
- public class ActiveEdge
- extends Edge
the representation of an active edge (incompletely matched production)
as used by the top-down active chart parser.
Constructor Summary |
ActiveEdge(java.lang.Object category,
java.util.Vector rhs,
ParseTreeNode[] children,
int start,
int end)
|
Method Summary |
java.lang.String |
needs()
returns the next unmatched element in the production. |
java.lang.String |
toString()
returns a printable form of the edge, in the form A -> B . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ActiveEdge
public ActiveEdge(java.lang.Object category,
java.util.Vector rhs,
ParseTreeNode[] children,
int start,
int end)
needs
public java.lang.String needs()
- returns the next unmatched element in the production. I.e.,
if the edge is A -> B . C D, needs returns C.
toString
public java.lang.String toString()
- returns a printable form of the edge, in the form A -> B . C D.
Here A is the symbol being expanded, B C D constitutes the right-hand
side of the production, and so far symbol B has been matched.