From ef96dbf0ec4a03cbaf4e8ba98784168bce82e4f2 Mon Sep 17 00:00:00 2001 From: Raymon Zutekouw <40148684+Raymonzut@users.noreply.github.com> 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 = { "]" }