comp
Class ParmList

java.lang.Object
  |
  +--comp.Node
        |
        +--comp.ParmList

class ParmList
extends Node

Represents a formal parameter list belonging to a function definition. Represented as a list of variable declarations.


Field Summary
 
Fields inherited from class comp.Node
asm, globalScope, labelCount, strings
 
Constructor Summary
(package private) ParmList()
           
 
Method Summary
 void add(VarDecl v)
          Add a new variable declaration to this list.
 void addDefs(Scope s)
          Add my definitions to the given scope.
 void asHTML(java.io.PrintStream out)
          Process each parameter.
 java.lang.String codeGen(Scope scope, RegBank bank)
          This is an error.
 java.lang.String toString()
           
 
Methods inherited from class comp.Node
addString, getLabel, lvalue, reset, rvalue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParmList

ParmList()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

add

public void add(VarDecl v)
Add a new variable declaration to this list.


addDefs

public void addDefs(Scope s)
Add my definitions to the given scope.

Overrides:
addDefs in class Node

codeGen

public java.lang.String codeGen(Scope scope,
                                RegBank bank)
This is an error. A parameter list does not generate any code.

Specified by:
codeGen in class Node

asHTML

public void asHTML(java.io.PrintStream out)
Process each parameter.

Specified by:
asHTML in class Node