BoolUnOp class

Represents a boolean unary operation in Balbismo.

A boolean unary operation applies a logical NOT operation to a boolean value. Currently, only the logical NOT operator (!) is supported for unary boolean operations.

Example Balbismo code:

int x = 0;
int result = !x;  // '!' is a BoolUnOp

This generates LLVM IR like:

%boolIsZero.0 = icmp eq i64 %x, 0
%boolUnOp.0 = zext i1 %boolIsZero.0 to i64
Inheritance

Constructors

BoolUnOp.new(String value, Node<dynamic, LangVal<LangType>> child)
Constructs a boolean unary operation with the operator and operand.

Properties

child Node<dynamic, LangVal<LangType>>
no setter
children List<Node>
Child nodes that form the structure of this node.
finalinherited
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 BoolOperator
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) LangVal<LangType>
Evaluates this AST node and generates corresponding LLVM IR code.
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