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

Function parseBasic

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

Source from the content-addressed store, hash-verified

1069}
1070
1071export function parseBasic(code: string): TermForBasic {
1072 return subsetSystem(
1073 parse(code),
1074 ["Boolean", "Number", "Func"],
1075 ["true", "false", "if", "number", "add", "var", "func", "call", "seq", "const"],
1076 );
1077}
1078
1079export function parseBasic2(code: string): TermForBasic2 {
1080 function conv(node: Term): Term {

Callers 1

runFunction · 0.50

Calls 2

subsetSystemFunction · 0.70
parseFunction · 0.70

Tested by

no test coverage detected