Module org.kink_lang.kink
Class InSlowFunLetRecGenerator
java.lang.Object
org.kink_lang.kink.internal.compile.javaclassir.InSlowFunLetRecGenerator
- All Implemented Interfaces:
LetRecGenerator
Generates letrec within slow fun.
-
Constructor Summary
-
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
-
InSlowFunLetRecGenerator
public InSlowFunLetRecGenerator()
-
-
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.
-