Skip to content

Jump Instructions

Benedict Albrecht edited this page May 20, 2026 · 5 revisions

Jump Instructions

The jump instruction accepts any tokens and stops at the token after the -->> symbol. This is useful for defining constructs where the content between start and end delimiters is irrelevant to the grammar (e.g., comments).

Syntax

-->> stopToken

Examples

Single-line comment

<:comment1:> // -->> \n <:>

Matches everything from // until a newline character.

Multi-line comment

<:comment2:> /* -->> */ <:>

Matches everything from /* until */.

Clone this wiki locally