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 9c60b4d6ac
commit a967f0649f
+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 = { "]" }