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

Function parseRec2

article/utils.ts:560–582  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

558}
559
560export function parseRec2(code: string) {
561 return subsetSystem(
562 parse(code),
563 ["Boolean", "Number", "Func", "Object", "TaggedUnion", "Rec", "TypeVar"],
564 [
565 "true",
566 "false",
567 "if",
568 "number",
569 "add",
570 "var",
571 "func",
572 "call",
573 "seq",
574 "const",
575 "objectNew",
576 "objectGet",
577 "taggedUnionNew",
578 "taggedUnionGet",
579 "recFunc",
580 ],
581 );
582}
583
584export function parsePoly(code: string) {
585 return subsetSystem(

Callers

nothing calls this directly

Calls 2

subsetSystemFunction · 0.70
parseFunction · 0.70

Tested by

no test coverage detected