MCPcopy Create free account
hub / github.com/LambdaNote/support-ts-tapl / parseRecFunc

Function parseRecFunc

book/tiny-ts-parser.ts:1165–1183  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

1163}
1164
1165export function parseRecFunc(code: string): TermForRecFunc {
1166 return subsetSystem(
1167 parse(code),
1168 ["Boolean", "Number", "Func"],
1169 [
1170 "true",
1171 "false",
1172 "if",
1173 "number",
1174 "add",
1175 "var",
1176 "func",
1177 "call",
1178 "seq",
1179 "const",
1180 "recFunc",
1181 ],
1182 );
1183}
1184
1185export function parseSub(code: string): TermForSub {
1186 return subsetSystem(

Callers 2

runFunction · 0.85
runFunction · 0.85

Calls 2

subsetSystemFunction · 0.70
parseFunction · 0.70

Tested by

no test coverage detected