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

Function parsePoly

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

Source from the content-addressed store, hash-verified

1237}
1238
1239export function parsePoly(code: string): TermForPoly {
1240 return subsetSystem(
1241 parse(code),
1242 ["Boolean", "Number", "Func", "TypeAbs", "TypeVar"],
1243 ["true", "false", "if", "number", "add", "var", "func", "call", "seq", "const", "typeAbs", "typeApp"],
1244 );
1245}
1246
1247export function parseSelf(code: string): TermForSelf {
1248 return subsetSystem(

Callers 1

runFunction · 0.50

Calls 2

subsetSystemFunction · 0.70
parseFunction · 0.70

Tested by

no test coverage detected