Skip to content
Snippets Groups Projects
Commit 91bcb906 authored by Leo's avatar Leo Committed by Leo
Browse files

feat: add comment/newline support, anonymous functions, ArneAlgebra, improved...

feat: add comment/newline support, anonymous functions, ArneAlgebra, improved error handling, and function-object assignments

- Newlines and comments support in lexer. Will be passed to the parser but they are evaluated as noop.
  The parser takes these, to accurately reconstruct the source code when an error occurs during parsing,
  to show exactly where the error occurred, in context.
- Improved Parser error messages with code trace
- Improved error messages for argument list parsing, now detecting missing comma between params, and closing parenthesis
- Added supoort for Anonymous functions
- Added function assignment to object properties, must be anonymous
- Added abs, sum, min and max functions to new global object 'ArneAlgebra'
- Added support for adding strings with other strings and numbers as concatenation
- Functions in objects now have access to the object properties as their own "environment" variables in runtime.
parent f65172e4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment