trimming various syntax error messages

This commit is contained in:
2025-10-15 23:28:14 +09:00
parent e99a4e700b
commit 00f6b70028
6 changed files with 147 additions and 53 deletions

View File

@ -1,3 +1,12 @@
return 1 2 ##ERROR: syntax error - excessive argument to 'return' around '2'
---
## TODO: improve the return to show the actual parenthensis like around '('
return 1 (+ 1 2) ##ERROR: syntax error - excessive argument to 'return' around ''
---
## the expression begins with a dictionary expression.
## it is not a function name and can'be be invoked.
#{100:1, 200: 3}; ##ERROR: syntax error - invalid callable

View File

@ -2,6 +2,22 @@ $?a ##ERROR: syntax error - invalid dollar-prefixed identifier '$?a'
---
-0e00 ##ERROR: syntax error - illegal erorr literal '-0e00'
---
+0e11 ##ERROR: syntax error - illegal erorr literal '+0e11'
---
-0p00 ##ERROR: syntax error - illegal smptr literal '-0p00'
---
+0p11 ##ERROR: syntax error - illegal smptr literal '+0p11'
---
$include ##ERROR: syntax error - '$include' target not specified
---