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

1. Alt parser #414

Closed
wants to merge 161 commits into from
Closed

1. Alt parser #414

wants to merge 161 commits into from

Conversation

Huy-DNA
Copy link
Member

@Huy-DNA Huy-DNA commented Aug 1, 2023

Summary

Issue

Asana

Lasting Changes (Technical)

  • Add an alternative dbml parser.

Checklist

Please check directly on the box once each of these are done

  • Documentation (if necessary)
  • Tests (integration test/unit test)
  • Integration Tests Passed
  • Code Review

@NQPhuc
Copy link
Contributor

NQPhuc commented Aug 2, 2023

Please ensure all CI tests passed

@phuongduyphan
Copy link
Collaborator

This PR is quite large @Huy-DNA, next time suggest we create multiple smaller PRs (i.e one for lexer, one for parser)

@phuongduyphan
Copy link
Collaborator

Also pls help me benchmark the new parser with the old pegjs one

@Huy-DNA
Copy link
Member Author

Huy-DNA commented Aug 3, 2023

Also pls help me benchmark the new parser with the old pegjs one

I have performed a cursory benchmark for the two:
For the following program:
image

Running it for about ten times, the total time of:

  • The pegjs one:

    image

  • The new one:

    image

@Huy-DNA
Copy link
Member Author

Huy-DNA commented Aug 3, 2023

Benchmark results:

  • 18k

    • Pegjs (5 times):

      image

    • New one (10 times):

      image

  • 25k

    • Pegjs (5 times):

    image

    • New one (10 times):

      image

Huy-DNA and others added 28 commits September 28, 2023 12:26
fix: single-line-comments was consuming newlines
fix: missing alias was not logged in parser
12. add partial parsing capability
Merge interpreter into alt-parser
merge revamp-parser into alt-parser
merge revamp-autosuggestions into alt-parser
@Huy-DNA Huy-DNA closed this Oct 12, 2023
@Huy-DNA Huy-DNA deleted the alt-parser branch February 26, 2024 02:52
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.

3 participants