Modifier and Type | Field and Description |
---|---|
Symbol |
ILOCFunction.functionSymbol
Function
Symbol from the AST symbol tables |
Modifier and Type | Method and Description |
---|---|
Symbol |
SymbolTable.lookup(String name)
Retrieves symbol information for a given symbol name.
|
static Symbol |
DecafAnalysis.lookupSymbol(ASTNode node,
String name)
Retrieves symbol information for a given symbol name.
|
Modifier and Type | Method and Description |
---|---|
List<Symbol> |
SymbolTable.getAllSymbols()
Gets all symbols accessible in this scope, which includes all symbols
defined at this level (from
getSymbols() ) plus all symbols defined
in any parent symbol table. |
List<Symbol> |
SymbolTable.getInheritedSymbols()
Gets all symbols accessible in this scope that are not defined in this
scope; i.e., all symbols that are defined in a parent table.
|
List<Symbol> |
SymbolTable.getSymbols()
Gets all symbols defined defined in this scope, in the order in which they were
added.
|
Modifier and Type | Method and Description |
---|---|
ILOCOperand |
ILOCGenerator.base(ASTNode dest,
Symbol variable)
Fills a register with the base address of a variable.
|
ILOCOperand |
ILOCGenerator.indexedOffset(ASTNode dest,
Symbol variable,
ILOCOperand indexReg)
Calculates the offset of an indexed variable reference and returns the
adjusted offset in an
ILOCOperand . |
void |
SymbolTable.insert(String name,
Symbol symbol)
Inserts a new symbol into the symbol table
|
ILOCOperand |
ILOCGenerator.offset(Symbol variable)
Calculates the offset of a scalar variable reference and returns the
adjusted offset in an
ILOCOperand . |
Constructor and Description |
---|
ILOCFunction(Symbol symbol)
Create a new (empty) ILOC function
|
Copyright © 2019. All rights reserved.