From bc99a9d96ba4bc70a4e06dc5d4876b82e929f3dc Mon Sep 17 00:00:00 2001 From: Raymon Zutekouw Date: Sun, 26 Dec 2021 19:31:06 +0100 Subject: [PATCH] Ensure operand is optional: only 0 or 1 --- src/grammars/mblf.pest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grammars/mblf.pest b/src/grammars/mblf.pest index 54f5e6c..d5882b2 100644 --- a/src/grammars/mblf.pest +++ b/src/grammars/mblf.pest @@ -1,7 +1,7 @@ operator = @{ "operator" } // TODO operand = @{ "operand" } // TODO -instruction = { operator ~ (" "+ ~ operand)* } +instruction = { operator ~ (" "+ ~ operand)? } loopBlockStart = { "[" } loopBlockEnd = { "]" }