-
Notifications
You must be signed in to change notification settings - Fork 0
Improve query syntax and semantics #35
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
Merged
Merged
Conversation
This file contains hidden or 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
Owner
mdm-code
commented
Nov 4, 2024
- Tq now expects a pointer to adapter
- Added selector-less string filter expr
- Added support for unquoted bare strings in query
- Implemented literal bare key use in queries
- Lifted new line constraint on queries and strings
- Fixed lexer error with ws allowed
- Adjusted parser error printer to multiline queries
- Change error pointer indent to rely on lineOffset
- Used lexer offset instead of the start in methods
- Pointed to right line in lexer error
- Added interpreter error doc string
- Used validator func. to check if run is line break
- Fixed error query write after offset
- Adjusted parser error to multiline query input
- Aligned lexer tests to multiline query input
- Added bare strings and mulitline input query tests
- Prototyped lexeme escape sequences on the token
- Added escape sequence map to lexer token.
- Split lexeme preparation to string and default
- Removed Trim off the string AST expr
- Allowed bare integers alongside strings
- Allowed for escaped single and double quotes
- Modified in-code docs to use bare multiline strs
- Added token utest for escaped quotes in strings
- Documented changes introducted to Tq in README
- Fixed example test
This has been introduced to account for implementation heavy underlying adapted marshallers/unmarshallers.
For now, they still have to be quoted to work.
Instead of relying on the lexer to tell if it's a given token is an escape sequence, the lexeme will be able to represent itself accordingly. These tokens are only allowed in quoted strings.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #35 +/- ##
==========================================
- Coverage 90.35% 86.46% -3.90%
==========================================
Files 12 12
Lines 726 820 +94
==========================================
+ Hits 656 709 +53
- Misses 51 86 +35
- Partials 19 25 +6 ☔ View full report in Codecov by Sentry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.