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

Function parse

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

Source from the content-addressed store, hash-verified

497}
498
499export function parse(code: string): Term {
500 const node = p.parse(code, { allowInvalidAST: false, loc: true });
501 return convertProgram(node.body);
502}
503
504export function parseArith(code: string) {
505 return subsetSystem(

Callers 7

parseArithFunction · 0.70
parseBasicFunction · 0.70
parseExtendedFunction · 0.70
parseSubFunction · 0.70
parseRecFunction · 0.70
parseRec2Function · 0.70
parsePolyFunction · 0.70

Calls 1

convertProgramFunction · 0.70

Tested by

no test coverage detected