java.lang.Object
org.kink_lang.kink.internal.compile.ItreeCompiler
Compiles itree to FunVal by runtime bytecode generation.
-
Constructor Summary
ConstructorDescriptionItreeCompiler
(Vm vm, MethodHandles.Lookup packageLookup, String programName, String programText, BindingVal binding) Constructs a compiler. -
Method Summary
-
Constructor Details
-
ItreeCompiler
public ItreeCompiler(Vm vm, MethodHandles.Lookup packageLookup, String programName, String programText, BindingVal binding) Constructs a compiler.- Parameters:
vm
- the vm.packageLookup
- lookup of org.kink_lang.kink package.programName
- the name of the program.programText
- the text of the program.binding
- the binding of the top level fun.
-
-
Method Details
-
compile
Returns a generated toplevel fun.- Parameters:
topLevel
- the top of the top level of the program.- Returns:
- a generated toplevel fun.
-