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

Improve parser #111

Merged
merged 27 commits into from
Mar 2, 2024
Merged

Improve parser #111

merged 27 commits into from
Mar 2, 2024

Conversation

kaleidawave
Copy link
Owner

@kaleidawave kaleidawave commented Jan 30, 2024

Done
  • Fix [,,] output dropping an empty
  • Import assertions
  • Remove variable field optional expression confusion
  • Test declaration files (including our own for the WASM build), see issues here
  • Fix weird single statement function with call (do function x(){}(); while (true);)
  • Fix the new issue from the specification
  • Make all tests run on main branch...?
  • clippy
  • Fix cfg related code issue
  • Allows variable field for spread expression under extras
  • Allow public for constructor things under full-typescript
Not great stuff introduced
  • Parse error for large exponentials on numbers (rather than clamping the size of the number)

This comment was marked as resolved.

@kaleidawave kaleidawave linked an issue Jan 30, 2024 that may be closed by this pull request
@kaleidawave kaleidawave changed the title Trying different fuzzing option Improve parser Jan 31, 2024
@kaleidawave kaleidawave mentioned this pull request Feb 7, 2024
9 tasks
@kaleidawave
Copy link
Owner Author

@kaleidawave kaleidawave added bug Something isn't working parser Related to Ezno's syntax parser, AST definitions and output labels Feb 10, 2024
@kaleidawave
Copy link
Owner Author

💚💚💚
image

@kaleidawave
Copy link
Owner Author

kaleidawave commented Feb 21, 2024

Just left is some TypeDeclarationModule stuff (might remove and have it all under Module). The following should parse only in type definition modules (it is the last thing to fix from the definition file generated in #114)

export default function x(): string;

Need a special default export variant which is an expression function with an optional body (normally all expression functions have to have a body but not in this case). Will fix tomorrow

@kaleidawave kaleidawave marked this pull request as ready for review February 22, 2024 08:32
@kaleidawave
Copy link
Owner Author

Lesson learnt: 10 minutes of sequential fuzzing runs doesn't run the same amount as 2 minutes of parallel fuzzing

@kaleidawave
Copy link
Owner Author

The fuzzer has something personal against me

image

@kaleidawave kaleidawave merged commit 50175d7 into main Mar 2, 2024
8 checks passed
@kaleidawave kaleidawave deleted the parser-fixes-412 branch April 10, 2024 19:40
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.

Improve fuzzing tests
1 participant