Ensure operand is optional: only 0 or 1

This commit is contained in:
2021-12-26 19:31:06 +01:00
committed by Raymon Zutekouw
parent 859f1df4b8
commit 755e2f1b53
+1 -1
View File
@@ -1,7 +1,7 @@
operator = @{ "operator" } // TODO operator = @{ "operator" } // TODO
operand = @{ "operand" } // TODO operand = @{ "operand" } // TODO
instruction = { operator ~ (" "+ ~ operand)* } instruction = { operator ~ (" "+ ~ operand)? }
loopBlockStart = { "[" } loopBlockStart = { "[" }
loopBlockEnd = { "]" } loopBlockEnd = { "]" }