(input: string)
| 10 | |
| 11 | export class AiSON { |
| 12 | public static parse(input: string): JsValue { |
| 13 | const scanner = new Scanner(input); |
| 14 | const ast = parseAiSonTopLevel(scanner); |
| 15 | |
| 16 | return nodeToJs(ast); |
| 17 | } |
| 18 | |
| 19 | private static stringifyWalk(value: Value, indent: string | null, currentIndent = ''): string { |
| 20 | switch (value.type) { |
no test coverage detected