Documentation ¶
Overview ¶
Package types provides data structures for types in GoCaml.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UnitType = &Unit{} BoolType = &Bool{} IntType = &Int{} FloatType = &Float{} StringType = &String{} )
Make singleton type values because it doesn't have any contextual information
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct { // Types for declarations. This is referred by type variables to resolve // type variables' actual types // // XXX: // Currently nested identifiers don't work. Example: // let // x = 42 // in // let x = true in print_bool (x); // print_int (x) // We need alpha transform before type inference in order to ensure // all symbol names are unique. Table map[string]Type // External variable names which are referred but not defined. // External variables are exposed as external symbols in other object files. Externals map[string]*External }
Result of type analysis.
func (*Env) DumpExternals ¶
func (env *Env) DumpExternals()
Click to show internal directories.
Click to hide internal directories.