Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom luakittens parser #10

Open
6 tasks
Dich0tomy opened this issue Aug 3, 2024 · 0 comments
Open
6 tasks

Custom luakittens parser #10

Dich0tomy opened this issue Aug 3, 2024 · 0 comments

Comments

@Dich0tomy
Copy link
Owner

Dich0tomy commented Aug 3, 2024

As per #7:

This implementation is incomplete and I will be rewriting it to a handwritten parser, which will allow for more fine-grained syntax control and better diagnostics.

We need to support:

  • alternative types properly
  • alternative types properly
  • type grouping ([](string|number)?)
  • properly support aliasing multiple returns and such (when functions will become a thing), but also for aliases/strong types if they will be supported
  • rewrite nils and alternatives to support them at grammar level but not typesystem level (AST validation & rewrite)
  • do we also make any actually be any type but not nil? And then only any? or any|nil would work as the classic any? Put that behind an option? lose_any or something?
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

No branches or pull requests

1 participant