FunctionList class
Represents a collection of function declarations in Balbismo.
A function list contains all the functions defined in a program. This is typically the root node of a Balbismo program's AST, containing all function definitions that need to be compiled.
Example Balbismo code:
int add(int x, int y) {
return x + y;
}
int main() {
return add(5, 3);
}
The entire program above would be contained in a FunctionList.
Constructors
-
FunctionList.new(List<
FuncDec> children) - Constructs a function list from function declaration nodes.
Properties
-
children
→ List<
Node> -
Child nodes that form the structure of this node.
finalinherited
-
funcs
→ List<
FuncDec> -
Gets the list of function declarations.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
Unique identifier for this node, used for LLVM register naming.
getter/setter pairinherited
- nodeValue → void
-
The primary value associated with this node (varies by node type).
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
evaluate(
SymbolTable table) → void -
Evaluates all function declarations in the list.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited