DeclStruct

public abstract class DeclStruct

Abstract class for all structures.

Fields

kind

protected int kind

Kind of declaration, used for a preferred order between declarations: first come USE (0), then TYPES (1), then CONSTANTS (2), then VARIABLES (3), then COMMONS (4), EQUIVALENCES (5), and FUNCTIONS (6).

symbolDecl

protected SymbolDecl symbolDecl

usedNames

protected TapList<SymbolDecl> usedNames

Methods

addUsedSymbol

protected void addUsedSymbol(SymbolDecl usedSymbolDecl)

generateTree

protected abstract Tree generateTree(TapList<SymbolDecl> declaredTypes, SymbolTable symbolTable)

toString

public String toString()