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 9fbf521174
commit bc99a9d96b
+1 -1
View File
@@ -1,7 +1,7 @@
operator = @{ "operator" } // TODO
operand = @{ "operand" } // TODO
instruction = { operator ~ (" "+ ~ operand)* }
instruction = { operator ~ (" "+ ~ operand)? }
loopBlockStart = { "[" }
loopBlockEnd = { "]" }