oops.parser
Class Some
java.lang.Object
|
+--oops.parser.Node
|
+--oops.parser.Many
|
+--oops.parser.Some
- public class Some
- extends Many
represents one or more occurrences: { node }.
- See Also:
- Serialized Form
Fields inherited from class oops.parser.Many |
node |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Some
public Some(Node node)
node
public Node node()
- Description copied from class: Node
- simplifies tree.
- Overrides:
- node in class Many
- Tags copied from class: Node
- Returns:
- this, subtree, or suitable node.
setLookahead
public Set setLookahead(Parser parser)
- lookahead results from subtree.
- Overrides:
- setLookahead in class Many
- Tags copied from class: Node
- Returns:
- lookahead.
checkLL1
public void checkLL1(Parser parser)
- lookahead != follow; check subtree.
- Overrides:
- checkLL1 in class Many
checkDeadLoop
public boolean checkDeadLoop()
- Overrides:
- checkDeadLoop in class Many
toString
public java.lang.String toString()
- Overrides:
- toString in class Many
parse
public void parse(Scanner scanner,
Goal goal,
Parser parser,
oops.parser.Activation caller)
throws java.io.IOException,
oops.parser.Activation
- performs recognition.
- Overrides:
- parse in class Many
- Parameters:
scanner
- delivers input tokens.goal
- represents current nonterminal and is informed about shifts/reduces.caller
- Activation frame.