-
Notifications
You must be signed in to change notification settings - Fork 0
Repeat Statements
Benedict Albrecht edited this page Jun 2, 2026
·
4 revisions
The repeat statement matches a pattern zero or more times in succession.
<? ... ?>
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.
The Basics grammar uses repeat in three places:
| Object | Repeat pattern | What it captures |
|---|---|---|
class |
<? <| , <||> <<NAME:down>> |> ?> |
Zero or more comma-separated parameters |
function |
<? <| , <||> <<NAME:down>> |> ?> |
Zero or more comma-separated parameters |
refference |
<? <| , <||> |> <<'name'>> ?> |
Zero or more comma-separated arguments |
In the Test_Repo:
-
class C1 (a , b , c )- repeat matches 3 times, capturing parametersa,b,cwith:downscope -
function F5 ( )- repeat matches 0 times (empty parameter list) -
C1.F1(aaa)- repeat matches 1 time, capturing reference'aaa'
Next: Jump Instructions - Skipping tokens until a target is found.
- Getting Started
- Sign-Up
- Home Screen
- Creating Your First Template
- Template Editor
- Application Navigation
- Syntax Overview
- Workflow: End-to-End
- Workflow: Test with simpleDemo
- Workflow: Build Template from angularTemp
- Demo Repositories
- Template
- Workbench
- GitHub Integration
- GitHub App Installation
- GitHub Repository Setup
- GitHub Re-linking
- Settings
- Overview
- Declarations
- Types
- Scoping