|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--openjava.syntax.AbstractSyntaxRule | +--openjava.syntax.PrepPhraseRule
The class PrepPhraseRule
represents the syntax rule
of a prepositional phrase.
Suppose there's a syntax rule A
and a given identifier
i
. This class can represent the syntax:
PrepPhraseRule := i A
Object
Constructor Summary | |
PrepPhraseRule(java.lang.String prep,
SyntaxRule words)
Allocates a new rule representing the syntax of a prepositional phrase consisting of a preposition and a syntax. |
Method Summary | |
ParseTree |
consume(TokenSource token_src)
Consumes tokens from the given token source following the rule. |
Methods inherited from class openjava.syntax.AbstractSyntaxRule |
getSyntaxException,
lookahead |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public PrepPhraseRule(java.lang.String prep, SyntaxRule words)
Method Detail |
public ParseTree consume(TokenSource token_src) throws SyntaxException
token_src
- token source to consume.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |