Match all instructions without arguments

This commit is contained in:
2021-12-30 22:47:16 +01:00
committed by Raymon Zutekouw
parent ea54bb404d
commit 764b2d17b9
2 changed files with 20 additions and 0 deletions
+8
View File
@@ -24,6 +24,10 @@ subb =@{ "subb" ~ spacing+ ~ num }
subv =@{ "subv" ~ spacing+ ~ variable }
copy =@{ "copy" ~ spacing+ ~ variable }
setz =@{ "setz" }
getchr =@{ "getchr" }
print =@{ "print" }
instruction =_{ var
| delvar
@@ -40,6 +44,10 @@ instruction =_{ var
| subv
| copy
| setz
| getchr
| print
| operator ~ (spacing+ ~ operand)?
}