implemented simple binary operator handling in the reader code
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-02-10 12:23:34 +09:00
parent 0455d6cdb3
commit b86eb13fb1
3 changed files with 58 additions and 9 deletions

View File

@ -1,3 +1,22 @@
##
x := (+ 10 20) "aaaa"; ##ERROR: syntax error - too many rvalues
---
##
x := (10 +); ##ERROR: syntax error - no operand after binary operator
---
##
x := (10 + 20 * 4); ##ERROR: syntax error - prohibited binary operator
---
## you can't have another colon before the method..
(obj: :method) ##ERROR: syntax error - : disallowed