This repository was archived by the owner on Apr 2, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 209
Added support for pratt parsers with up to 676 operators #682
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d833f65
Added support for pratt parsers with up to 676 operators
TheOnlyTails 037c376
Increase macro recursion limit
TheOnlyTails 28fb05c
is this enough
TheOnlyTails cdff643
Decrease operator limit to 208
TheOnlyTails a0349a4
Merge branch 'main' into bigger_pratt
TheOnlyTails eab7b61
maybe using slices with const generic size works?
TheOnlyTails f7134b3
Merge branch 'bigger_pratt' of https://github.com/TheOnlyTails/chumsk…
TheOnlyTails 106bea5
Merge branch 'main' into bigger_pratt
TheOnlyTails 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
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
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.
I don't think this is doing what you think it's doing, unfortunately. This requires that all operators are of exactly the same time, which is almost useless. For this to be useful you'd need to implement
OperatorforBox<dyn Operator>, but then the code below likeT::IS_PREFIXand others would need to change to check what kind of operator it is at run time.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.
Ah, that sucks. I tried looking at the
choicecombinator to use the same tuple nesting logic, but unfortunately macro syntax still flies over my head.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.
Yeah, there's a good reason I bounced off this problem the first time round. Maybe I'll give it another go soon.