Parser.skipParens

Skips to the token behind the closing parenthesis token. Takes nesting into account.

class Parser
Token*
skipParens
(
Token* peek_token
,
)

Parameters

peek_token
Type: Token*

Opening token to start from.

closing
Type: TOK

Matching closing token kind.

Return Value

Type: Token*

The token searched for, or the EOF token.

Meta