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

Function parseObj

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

Source from the content-addressed store, hash-verified

1121}
1122
1123export function parseObj(code: string): TermForObj {
1124 return subsetSystem(
1125 parse(code),
1126 ["Boolean", "Number", "Func", "Object"],
1127 [
1128 "true",
1129 "false",
1130 "if",
1131 "number",
1132 "add",
1133 "var",
1134 "func",
1135 "call",
1136 "seq",
1137 "const",
1138 "objectNew",
1139 "objectGet",
1140 ],
1141 );
1142}
1143
1144export function parseTaggedUnion(code: string): TermForTaggedUnion {
1145 return subsetSystem(

Callers 1

runFunction · 0.85

Calls 2

subsetSystemFunction · 0.70
parseFunction · 0.70

Tested by

no test coverage detected