Package convex.core.lang
Class Compiler
java.lang.Object
convex.core.lang.Compiler
Compiler class responsible for transforming forms (code as data) into an
Op tree for execution.
Phases in complete evaluation:
- Expansion (form -> AST)
- Compile (AST -> op)
- Execute (op -> result)
-
Field Summary
FieldsModifier and TypeFieldDescriptionInitial expander used for expansion of forms prior to compilation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
isListStarting
(Symbol element, ACell form) Returns true if the form is a List starting with value equal to the the specified element
-
Field Details
-
INITIAL_EXPANDER
-
-
Constructor Details
-
Compiler
public Compiler()
-
-
Method Details
-
isListStarting
-