MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / parseOut

Function parseOut

src/parser/syntaxes/statements.ts:201–209  ·  view source on GitHub ↗

* ```abnf * Out = "<:" Expr * ```

(s: ITokenStream)

Source from the content-addressed store, hash-verified

199 * ```
200*/
201function parseOut(s: ITokenStream): Ast.Call {
202 const startPos = s.getPos();
203
204 s.expect(TokenKind.Out);
205 s.next();
206 const expr = parseExpr(s, false);
207
208 return CALL_NODE('print', [expr], startPos, s.getPos());
209}
210
211/**
212 * ```abnf

Callers 1

parseStatementFunction · 0.85

Calls 5

parseExprFunction · 0.85
CALL_NODEFunction · 0.85
getPosMethod · 0.65
expectMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected