[bug] return
does not accept variables
#2
Labels
A-Compiler
Dealing with the compiler (analyzer, tokenizer, parser, transpiler)
P-Low
T-Bug
Something isn't working
Describe the bug
If you try and return with anything but a literal, it will fail, with the token seemingly being skipped or just not existing at all.
To Reproduce
Expected behaviour
Return works with identifiers.
Additional context
The tokenizer works fine. Inspecting the output tokens gives proper identifiers and semicolons. This is something incredibly cursed with the parser.
The text was updated successfully, but these errors were encountered: