LangVal<T extends LangType> class

Represents a value in the Balbismo language with its type information.

A LangVal encapsulates both the LLVM register name (where the value is stored) and the type information for that value. This is used throughout the compiler to track values during expression evaluation and code generation.

The generic type parameter T ensures type safety by constraining the type to valid Balbismo language types that extend LangType.

Example usage:

final intVal = LangVal("%result", PrimitiveType(PrimitiveTypes.int));
final floatVal = LangVal("%temp", PrimitiveType(PrimitiveTypes.float));

Constructors

LangVal.new(String regName, T type)
Constructs a language value with the specified register name and type.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
regName String
The LLVM register name where this value is stored.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type → T
The type of this value.
final

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