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

Function parseSub

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

Source from the content-addressed store, hash-verified

1183}
1184
1185export function parseSub(code: string): TermForSub {
1186 return subsetSystem(
1187 parse(code),
1188 ["Boolean", "Number", "Func", "Object"],
1189 ["true", "false", "number", "add", "var", "func", "call", "seq", "const", "objectNew", "objectGet"],
1190 );
1191}
1192
1193export function parseRec(code: string): TermForRec {
1194 return subsetSystem(

Callers 1

runFunction · 0.50

Calls 2

subsetSystemFunction · 0.70
parseFunction · 0.70

Tested by

no test coverage detected