Expand description
This module provides the core data structures used by the parser, compiler and evaluator of WLambda.
Structs§
- Compile
Error - DropFun
- Handles calling of destructor functions.
- Env
- The runtime environment of the evaluator.
- FileRef
- Loop
Info - Stdio
- SynPos
- Structure for holding information about origin of an AST node.
- SynPos
Info - VValFun
- This structure is the runtime representation of a WLambda function value.
Enums§
- Collection
Add - This type gives the end where to add the
VVal::add
function. - FunType
- Stack
Action - Encodes all kinds of jumps up the call stack, like
break
andnext
in Loops. - Syntax
- Encodes the different types of AST nodes.
- Unwind
Action - Describes an action that needs to be done when returning from a function or somehow jumps unpredictably around the VM prog.
- VVal
- VVal aka. VariantValue is a data structure to represent all kinds of WLambda data structures.
- VValChr
- The internal distinction between a character and a byte. They share parts of the lexical represenation and also the semantic purspose is similar.
- VarPos
- Position of a variable represented in the
CompileEnv
.
Traits§
- VVal
User Data - You can implement your own VVal data type and provide it via global functions: