implemented simple binary operator handling in the reader code
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user