LangVar<T extends LangType> class
Represents a variable in the Balbismo language with its type and memory location.
A LangVar encapsulates both the LLVM pointer name (where the variable is allocated in memory) and the type information for that variable. This is used by the symbol table to track variable declarations and their memory locations.
The generic type parameter T
ensures type safety by constraining the type
to valid Balbismo language types that extend LangType.
Example usage:
final intVar = LangVar("%ptr.x", PrimitiveType(PrimitiveTypes.int));
final arrayVar = LangVar("%ptr.arr", ArrayType(PrimitiveTypes.float));
Constructors
- LangVar.new(String ptrName, T type)
-
Constructs a language variable with the specified pointer name and type.
const
Properties
Methods
-
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