fixed more reader problems
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-18 22:21:11 +09:00
parent b6e6274666
commit 914d1797f3
4 changed files with 33 additions and 14 deletions

View File

@ -10,7 +10,7 @@
i:=0;
while(i < 20) {
printf "hello world 안녕하신가\n"
i := i + 20 ##ERROR: syntax error - prohibited binary operator - +
i := i + 20 ##ERROR: syntax error - prohibited binary selector '+'
}
---

View File

@ -11,7 +11,7 @@ class B ( ##ERROR: syntax error - block expression expected as 'class' body
---
class B + ##ERROR: syntax error - prohibited binary operator - +
class B + ##ERROR: syntax error - prohibited binary selector '+'
---

View File

@ -125,10 +125,13 @@ abc.? := 20 ##ERROR: syntax error - '?' prohibited as first character of identif
+++ := 20 ##ERROR: syntax error - bad lvalue - invalid element - +++
##---
##1 + + +
##ASSERTION FAILURE: rstl->count == 3 at ../../../lib/read.c:1001
#
#
#HCL> 1 + 2 3 + 4
##ASSERTION FAILURE: rstl->count == 3 at ../../../lib/read.c:1002
---
1 + + + ##ERROR: syntax error - prohibited binary selector '+'
---
1 * 2 3 - 4 ##ERROR: syntax error - prohibited binary selector '-'
---
1 * 2 3 4 ##ERROR: syntax error - redundant operand '4'