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
 
Fields inherited from class oops.parser.Node
follow, lookahead
 
Constructor Summary
Some(Node node)
           
 
Method Summary
 boolean checkDeadLoop()
           
 void checkLL1(Parser parser)
          lookahead != follow; check subtree.
 Node node()
          simplifies tree.
 void parse(Scanner scanner, Goal goal, Parser parser, oops.parser.Activation caller)
          performs recognition.
 Set setLookahead(Parser parser)
          lookahead results from subtree.
 java.lang.String toString()
           
 
Methods inherited from class oops.parser.Many
degree, setFollow, sub
 
Methods inherited from class oops.parser.Node
add, getLookahead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Some

public Some(Node node)
Method Detail

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.