public class ILOCProgram extends Object
Modifier and Type | Field and Description |
---|---|
List<ILOCFunction> |
functions
List of ILOC functions
|
int |
staticSize
Size (in bytes) to allocate in static region for global variables
|
SymbolTable |
staticSymbols
Static symbol table (global variables and functions)
|
Constructor and Description |
---|
ILOCProgram()
Create a new ILOC program object with an empty symbol table
|
Modifier and Type | Method and Description |
---|---|
ILOCFunction |
getFunction(String name)
Search for a function based on name
|
String |
toString()
Builds a standard string-based representation of an ILOC program
|
public SymbolTable staticSymbols
public int staticSize
public List<ILOCFunction> functions
public ILOCProgram()
public ILOCFunction getFunction(String name)
name
- Name to search forILOCFunction
if found, null
otherwiseCopyright © 2019. All rights reserved.