-
Notifications
You must be signed in to change notification settings - Fork 590
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
feat(parser): the 1st version of a new combinator style parser #16876
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
64132ed
feat(parser): the 1st version of a new parser-combinator style parser
TennyZhuang f68d97e
add parse_v2
TennyZhuang 12bfadf
Update src/sqlparser/src/parser_v2/data_type.rs
TennyZhuang b0a0afd
minor fix
TennyZhuang 8ea355a
minor improvement
TennyZhuang 332234b
minor fix
TennyZhuang 2ccd163
add some label
TennyZhuang 5a3b34d
introduce TokenStreamWrapper for better readability
TennyZhuang 6c9683a
fix parse_v2
TennyZhuang 905fa6a
handle whitespace
TennyZhuang 80208ef
use preceed
TennyZhuang 9c9472f
remove dbg
TennyZhuang 2d6692c
fix custom data type
TennyZhuang 7e8166d
fix array parsing
TennyZhuang 686217c
add a context
TennyZhuang 51f9265
fix unused import
TennyZhuang 89f67e5
fix struct parsing
TennyZhuang 6b62577
fix float parsing
TennyZhuang 32d29db
fix precision parsing
TennyZhuang c76c314
add many comments
TennyZhuang d00ec9f
fix clippy
TennyZhuang 60f2019
simplify error def
TennyZhuang 3b366ab
fix precision parsing
TennyZhuang 26c7499
fix double
TennyZhuang b26810d
fix custom type parsing
TennyZhuang 5cdab19
1..54
TennyZhuang 79ce4ea
support TEXT
TennyZhuang df6137b
fix
TennyZhuang 4504419
fix ut
TennyZhuang 0e239cc
refine error message
TennyZhuang 9ba9e97
fix stateful parsing
TennyZhuang 3cf20d1
refine error
TennyZhuang 88562ff
fix ut
TennyZhuang 8452dc7
fix struct sep parsing
TennyZhuang f9d93c7
Update src/sqlparser/src/parser_v2/number.rs
TennyZhuang 162a663
address comments
TennyZhuang cc9dbc3
fix warning
TennyZhuang d8b7d60
fix
TennyZhuang b7d79e1
revert a behavior
TennyZhuang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 we use
ParseError
here for better error reporting?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.
Which
ParserError
? If you mean v2, I'd prefer give user a consistent user experience now.