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

Parser improvements #125

Merged
merged 3 commits into from
Mar 15, 2024
Merged

Parser improvements #125

merged 3 commits into from
Mar 15, 2024

Conversation

kaleidawave
Copy link
Owner

  • Array and objects can be turned into destructured variable field and now does that if the LHS is = (which hopefully reduces the overhead of the previous implementation which did lookahead)
  • Added negation to literal type annotations (such as -2)
  • Added class member typed ondexer thing e.g [x: number]: T
  • Simplifies declare things
  • Removed performs annotations (will be replaced in the future with Constant decorator)
  • ASTNode::get_position returns Span rather than &Span
  • Removed some temporary things to satisfy the checker

@kaleidawave kaleidawave added bug Something isn't working parser Related to Ezno's syntax parser, AST definitions and output labels Mar 15, 2024
@kaleidawave kaleidawave merged commit 78e3839 into main Mar 15, 2024
8 checks passed
@kaleidawave kaleidawave deleted the parser-153 branch May 20, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser Related to Ezno's syntax parser, AST definitions and output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant