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

Function parseEval

src/parser/syntaxes/expressions.ts:523–531  ·  view source on GitHub ↗

* ```abnf * Eval = "eval" Block * ```

(s: ITokenStream)

Source from the content-addressed store, hash-verified

521 * ```
522*/
523function parseEval(s: ITokenStream): Ast.Block {
524 const startPos = s.getPos();
525
526 s.expect(TokenKind.EvalKeyword);
527 s.next();
528 const statements = parseBlock(s);
529
530 return NODE('block', { statements }, startPos, s.getPos());
531}
532
533/**
534 * ```abnf

Callers 1

parseAtomFunction · 0.85

Calls 5

parseBlockFunction · 0.85
NODEFunction · 0.85
getPosMethod · 0.65
expectMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected