-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Generate a static parser, move tests to vis_type_timelion #55299
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
Conversation
flash1293
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add documentation in a readme or something on how to create the parser code?
|
|
||
| // @ts-ignore | ||
| import grammar from 'raw-loader!../chain.peg'; | ||
| import { parse } from '../chain'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to mark somehow that this file was automatically generated from PEG, for example. for kuery.peg we moved it to the _generated_ folder
|
alexwizp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments above
Hey @alexwizp, your comments makes sense. Updated. |
|
LGTM! thanks |
flash1293
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, didn't check out locally
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
Summary
This includes a static generated file with peg parser and unit tests moved to jest from the legacy timelion app.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers