geneseo.cs.miniml
Class NullFormalsNode

java.lang.Object
  |
  +--geneseo.cs.miniml.MinimLParseNode
        |
        +--geneseo.cs.miniml.NullFormalsNode
All Implemented Interfaces:
ParseNode

public class NullFormalsNode
extends MinimLParseNode

Represents syntax tree nodes that mark the end of a formal parameter list in a MinimL compiler. Equivalently, these nodes indicate an empty formal parameter list.


Constructor Summary
NullFormalsNode()
          Initialize an empty formal parameter list syntax tree node.
 
Method Summary
 void acceptVisit(MinimLParseVisitor visitor)
          Allow a visitor object to process the syntax tree for an empty formal parameter list.
 java.lang.String toString()
          Generate a string representation of a syntax tree node for an empty formal parameter list.
 
Methods inherited from class geneseo.cs.miniml.MinimLParseNode
getAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullFormalsNode

public NullFormalsNode()
Initialize an empty formal parameter list syntax tree node.
Method Detail

acceptVisit

public void acceptVisit(MinimLParseVisitor visitor)
                 throws CompilerException
Allow a visitor object to process the syntax tree for an empty formal parameter list. Exactly what the visitor does to the parameter list is up to the visitor.
Overrides:
acceptVisit in class MinimLParseNode
Parameters:
visitor - The object that wishes to process the empty formal parameter list.
Throws:
CompilerException - If thrown by the visitor.

toString

public java.lang.String toString()
Generate a string representation of a syntax tree node for an empty formal parameter list.
Overrides:
toString in class java.lang.Object
Returns:
The string representation of the syntax tree node.