cs132.vapor.ast
Class VaporProgram

java.lang.Object
  extended by cs132.vapor.ast.VaporProgram

public class VaporProgram
extends Object

Represents a full Vapor program.


Field Summary
 boolean allowLocals
          Whether local variables were allowed to be used in this program.
 boolean allowStack
          Whether the program is allowed to store values on the function call stack.
 VDataSegment[] dataSegments
          All the data segments in this program.
 VFunction[] functions
          All the functions in this program.
 String[] registers
          The list of registers that were allowed to be used in this program.
 
Constructor Summary
VaporProgram(boolean allowLocals, String[] registers, boolean allowStack, VDataSegment[] dataSegments, VFunction[] functions)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allowLocals

public final boolean allowLocals
Whether local variables were allowed to be used in this program.


registers

public final String[] registers
The list of registers that were allowed to be used in this program.


allowStack

public final boolean allowStack
Whether the program is allowed to store values on the function call stack.


dataSegments

public final VDataSegment[] dataSegments
All the data segments in this program.


functions

public final VFunction[] functions
All the functions in this program.

Constructor Detail

VaporProgram

public VaporProgram(boolean allowLocals,
                    String[] registers,
                    boolean allowStack,
                    VDataSegment[] dataSegments,
                    VFunction[] functions)