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

Function parseArith

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

Source from the content-addressed store, hash-verified

1061}
1062
1063export function parseArith(code: string): TermForArith {
1064 return subsetSystem(
1065 parse(code),
1066 ["Boolean", "Number"],
1067 ["true", "false", "if", "number", "add"],
1068 );
1069}
1070
1071export function parseBasic(code: string): TermForBasic {
1072 return subsetSystem(

Callers 1

runFunction · 0.50

Calls 2

subsetSystemFunction · 0.70
parseFunction · 0.70

Tested by

no test coverage detected