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

Method lookahead

src/parser/streams/token-stream.ts:42–42  ·  view source on GitHub ↗

* トークンの先読みを行います。カーソル位置は移動されません。

(offset: number)

Source from the content-addressed store, hash-verified

40 * トークンの先読みを行います。カーソル位置は移動されません。
41 */
42 lookahead(offset: number): Token;
43
44 /**
45 * カーソル位置にあるトークンの種類が指定したトークンの種類と一致することを確認します。

Callers 4

parser.tsFile · 0.65
parseStatementFunction · 0.65
parseAtomFunction · 0.65
parseIfFunction · 0.65

Implementers 2

Scannersrc/parser/scanner.ts
TokenStreamsrc/parser/streams/token-stream.ts

Calls

no outgoing calls

Tested by

no test coverage detected