Module org.kink_lang.kink
Class InFastFunLetRecGenerator
java.lang.Object
org.kink_lang.kink.internal.compile.javaclassir.InFastFunLetRecGenerator
- All Implemented Interfaces:
LetRecGenerator
Generates letrec within fast fun.
-
Constructor Summary
ConstructorDescriptionInFastFunLetRecGenerator
(LvarAccessGenerator lvarAccGen, MakeFastFunGenerator makeFunGen) Constructs generator. -
Method Summary
Modifier and TypeMethodDescriptionletRec
(LetRecItree itree, BiFunction<Itree, org.kink_lang.kink.internal.compile.javaclassir.ResultContext, List<Insn>> generate) Generates letrec insns.
-
Constructor Details
-
InFastFunLetRecGenerator
Constructs generator.- Parameters:
lvarAccGen
- the lvar access generator.makeFunGen
- the make fun generator.
-
-
Method Details
-
letRec
public List<Insn> letRec(LetRecItree itree, BiFunction<Itree, org.kink_lang.kink.internal.compile.javaclassir.ResultContext, List<Insn>> generate) Description copied from interface:LetRecGenerator
Generates letrec insns.- Specified by:
letRec
in interfaceLetRecGenerator
- Parameters:
itree
- letrec itree.generate
- generates insns of sub expressions.- Returns:
- insns.
-