MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / parseWL

Function parseWL

scripts/rubi/wl-parser.ts:485–490  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

483
484/** Parse a single WL InputForm expression. Throws on syntax errors. */
485export function parseWL(src: string): Json {
486 const parser = new Parser(new Tokenizer(src).tokens);
487 const result = parser.parseExpression(0);
488 if (!parser.atEnd()) throw new Error(`trailing input in: ${src}`);
489 return result;
490}

Callers 4

loadTestFileFunction · 0.90
extractRulesFunction · 0.90
wester.tsFile · 0.90

Calls 2

parseExpressionMethod · 0.95
atEndMethod · 0.95

Tested by

no test coverage detected