Skip to content

Repeat Statements

Benedict Albrecht edited this page Jun 2, 2026 · 4 revisions

Repeat Statements

The repeat statement matches a pattern zero or more times in succession.


Syntax

<? ... ?>

Example

A function with a comma-separated parameter list:

<:function:> function <<name>> ( <? <<var>> <| , <||> |> ?> ) { <---> } <:>
Input Repetitions
function myFunc ( ) { } 0
function myFunc ( x ) { } 1
function myFunc ( x , y ) { } 2
function myFunc ( x , y , z ) { } 3

Pattern: <| , <||> |> inside the repeat provides an optional comma separator between repetitions.


Next: Jump Instructions - Skipping tokens until a target is found.

Clone this wiki locally