MCPcopy Index your code
hub / github.com/aiscript-dev/aiscript / parse

Method parse

src/parser/aison.ts:12–17  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

10
11export 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) {

Callers 15

identifiers.tsFile · 0.45
index.tsFile · 0.45
interpreter.tsFile · 0.45
exeAndGetErrPosFunction · 0.45
exeAndGetErrMessageFunction · 0.45
countSleepsFunction · 0.45
exePausableFunction · 0.45
aison.tsFile · 0.45
std.tsFile · 0.45
getAstFunction · 0.45
pre-release.mjsFile · 0.45
parse.mjsFile · 0.45

Calls 2

nodeToJsFunction · 0.90
parseAiSonTopLevelFunction · 0.85

Tested by

no test coverage detected