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

Function parseExtended

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

Source from the content-addressed store, hash-verified

518}
519
520export function parseExtended(code: string) {
521 return subsetSystem(
522 parse(code),
523 ["Boolean", "Number", "Func", "Object", "TaggedUnion"],
524 [
525 "true",
526 "false",
527 "if",
528 "number",
529 "add",
530 "var",
531 "func",
532 "call",
533 "seq",
534 "const",
535 "objectNew",
536 "objectGet",
537 "taggedUnionNew",
538 "taggedUnionGet",
539 "recFunc",
540 ],
541 );
542}
543
544export function parseSub(code: string) {
545 return subsetSystem(

Callers

nothing calls this directly

Calls 2

subsetSystemFunction · 0.70
parseFunction · 0.70

Tested by

no test coverage detected