Typle.Inference.Expr (Typle v0.1.0)

View Source

Walks AST expressions and infers their types.

Each infer/2 call takes an AST node and a type environment, returning {type, updated_env}.

Summary

Functions

Infers the type of an AST expression and records it in the environment.

Functions

infer(literal, env)

Infers the type of an AST expression and records it in the environment.

Returns {inferred_type, updated_env}.