DoisC::Environment::Global
Global semantic environment for predeclared types, builtin symbols, and user-defined top-level type/function/procedure declarations.
Constructors
new
SourceInstance methods
Returns true if the given name belongs to the compiler-provided prelude.
builtins
SourceProcedures are currently stored in the same global function table. Their semantic distinction is preserved elsewhere in the compiler.
define_type(ref : Types::NominalTypeReference, defn : Types::TypeDefinition)
Sourcefunc_defs
Sourceregister_type(name : String)
Register a user-defined nominal type name before its full definition is resolved. This is distinct from builtin/prelude type registration.
type_definition(ref : Types::NominalTypeReference)
Source