Ensure operand is optional: only 0 or 1

rewrite/grammar-implicit-whitespace
Raymon Zutekouw 3 years ago
parent 0c87557d39
commit ef96dbf0ec
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 2
      src/grammars/mblf.pest

@ -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 = { "]" }

Loading…
Cancel
Save