Skip to content

Conversation

@rvirding
Copy link
Owner

@rvirding rvirding commented Jul 7, 2025

We fix the scanner so it handles numbers in a Lua compliant manner and signals errors in a compatible way. E.g. the sequence "12.3e4fgh" now generates and error whereas before it generated a number and a name. This is exactly what Lua does. We also make strings scan the same way.

The parser now handles attributes in local variables though we don't use this feature. Also we make sure that local functions can do recursive calls and also reference their own name in the function. Again to be Lua compliant.

rvirding added 2 commits July 11, 2025 23:32
The scanner can now handle all the ways of writing literal decimal and
hexadecimal numbers whicc can be a bit "strange". Also fix strings
backquote characters.
The parser can now handle attributes though we ignore them. The
normaliser now handles local functions by assigning them first so they
can reference themselves in the body. This is defined by Lua.
@rvirding rvirding force-pushed the develop-scan-parse branch from 9acbda7 to fee8313 Compare July 12, 2025 09:35
This will probably be extended later. Also fix the compiler to use the
new luerl_io module.
@rvirding rvirding force-pushed the develop-scan-parse branch from b96e21a to 4788b53 Compare July 19, 2025 11:50
We now follow Lua here. Also add some documentation about this in
luerl.erl.
@rvirding rvirding force-pushed the develop-scan-parse branch from 50b59a6 to 9c7dffa Compare July 19, 2025 21:04
@rvirding rvirding merged commit 7b11b14 into develop Jul 21, 2025
5 checks passed
@rvirding rvirding deleted the develop-scan-parse branch August 4, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant