LabelHeap¶
-
public final class
LabelHeap
¶ Holds the heap of all known labels (“goto” labels).
Methods¶
fuseLabelled¶
getSetLabelled¶
-
public Block
getSetLabelled
(String label, TapList<Block> allBlocks, boolean defines, Tree position)¶ - Returns
the unique Block designated by the “label”. Creates this Block if necessary. “defines” is a flag indicating that this label is here defined (instead of used) In case of a redefinition of a label, the second definition is ignored, and this function returns null.
undefinedLabels¶
-
public void
undefinedLabels
(Block exitBlock, SymbolTable symbolTable)¶