(src: string)
| 483 | |
| 484 | /** Parse a single WL InputForm expression. Throws on syntax errors. */ |
| 485 | export 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 | } |
no test coverage detected