From b618aee7ee9982055801bb78145b908351316545 Mon Sep 17 00:00:00 2001 From: Funky Waddle Date: Sun, 23 Nov 2025 23:27:23 -0600 Subject: [PATCH] Add loop syntax. Add attempt/error (try/catch) --- core/bnf/statements.bnf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/bnf/statements.bnf b/core/bnf/statements.bnf index ccbb404..8949ff7 100644 --- a/core/bnf/statements.bnf +++ b/core/bnf/statements.bnf @@ -1,9 +1,12 @@ ::= | | + | + | | | | + | ::= ".set(" ")" ";" @@ -11,6 +14,10 @@ ::= "while" "(" ")" "{" * "}" + ::= "loop" "(" "," "->" ["," ]? ")" "{" * "}" + + ::= "rloop" "(" "," "->" ["," ]? ")" "{" * "}" + ::= "(" ? ")" ";" ::= ("," )* @@ -18,3 +25,7 @@ ::= "rtn" ";" ::= "using" ".set(" ")" "{" * "}" + + ::= ".attempt" "{" * "}" + + ::= ("ok" | | "error") "{" * "}"