From 040fb35732e6c7c0d8f4ccf7c9bee7242cea6939 Mon Sep 17 00:00:00 2001 From: nodist Date: Mon, 1 Jun 2026 18:08:43 -0400 Subject: update action syntax and start application --- docs/syntax/index.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'docs/syntax/index.md') diff --git a/docs/syntax/index.md b/docs/syntax/index.md index fa47202..fe97143 100644 --- a/docs/syntax/index.md +++ b/docs/syntax/index.md @@ -122,6 +122,8 @@ Type[arg] A list of statements between `{}` separated by `;` or `\n` associated with a conditional +Arguments are specified with a `[]` at the beginning of the `{}` + ## Conditionals #### Loop `@` @@ -129,11 +131,11 @@ A list of statements between `{}` separated by `;` or `\n` associated with a co ```text @ condition { statements } -@ condition { statements }[args] +@ condition {[args] statements } -@ condition { statements }[.name] +@ condition {[.name] statements } -@ condition { statements }[.name; args] +@ condition {[.name; args] statements } ``` #### If `?` @@ -146,7 +148,7 @@ A list of statements between `{}` separated by `;` or `\n` associated with a co { default statements } } -? condition { arg; .... }[arg] +? condition {[arg] arg; .... } ``` #### Match `#` @@ -154,7 +156,7 @@ A list of statements between `{}` separated by `;` or `\n` associated with a co ```text # match { target { statements } - target { statements }[args] + target {[args] statements } { default statements } } ``` @@ -162,5 +164,5 @@ A list of statements between `{}` separated by `;` or `\n` associated with a co #### Mutation `^` ```test -^ mutation { statements }[args] +^ mutation {[args] statements } ``` -- cgit v1.2.3