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