-
Couldn't load subscription status.
- Fork 3
feat: rewrite using syn #84
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
Open
scrabsha
wants to merge
50
commits into
main
Choose a base branch
from
antibes-hackathon
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
f523882
hackathon start
pietroalbini c01f1ab
add yet another token tree implementation
pietroalbini d3783d5
Meta variable type is resolved actually :sweat_smile:
scrabsha 3fb5ac8
Oupsy doupsy
scrabsha c5dda81
add RepetitionId
pietroalbini 68dd30b
silence missing docs lint
pietroalbini ae9e71f
Temporarily make the id inner field public
scrabsha c4bd7c2
The metavariable name is actually an identifier
scrabsha 85fd5e7
Use the metavariable type in the tokenstream definition
scrabsha b680417
The repetition can actually be an ident, a punctuation or a literal
scrabsha fa7234c
Add the Repetition::to_token_tree method
scrabsha 6cf4c7b
Add the proc-macro2::TokenStream -> expandable_impl::TokenStream impl
scrabsha 2281e45
Fix the error enum
scrabsha ec31e32
Add transcriber parsing as well :sparkles:
scrabsha ad62900
Add tests for the TokenTree parsing, fix a (stupid) error
scrabsha b700112
Fix id ordering, add more tests
scrabsha 29285be
Make sure expect test output is the same regardless of how the test s…
scrabsha bce4b17
add a better debug impl for repetition id
pietroalbini 3c7a254
gather repetition groups
pietroalbini 8c8e782
Add tokenstream -> generic tokenstream convertion function
scrabsha d8ee159
suppress warnings
pietroalbini 3ad881d
Add tests
scrabsha 98c0d3b
Remove warnings
scrabsha 5966337
create our own Span type that renders the source text in the debug impl
pietroalbini 6311e55
update tests
pietroalbini ca579e2
switch the default span in the error to our own
pietroalbini 9e9f4ff
remove deref impl for our span
pietroalbini 1d3c179
calculate proper span for metavariables
pietroalbini eb073af
slightly nicer debug implementation for span
pietroalbini 6e87afd
better rendering for repetition group tests
pietroalbini 732160c
fix span for repetitions
pietroalbini e90c025
Fancy debug impl :blush:
scrabsha f9a8553
document the repetition groups code
pietroalbini 08cb4a2
Ditch the old architecture
scrabsha 33ef9cc
pin a nightly and rewrap comments
pietroalbini 293d9bb
Use our own span in the error
pietroalbini 281b11f
add failing tests for the upcoming thing
pietroalbini 45e0b4b
handle more edge cases with ghost metavars
pietroalbini 6a2a692
Glue the new code together :sparkles:
scrabsha b663295
Actually `rust-grammar-dpdfa` and `grammar-gen` can be removed too!
scrabsha bd8d4ab
Move the expansion checking code to the right module, implement the m…
scrabsha 7126b28
refactor to use an Analysis struct
pietroalbini 02f1564
document ghost metavariables
pietroalbini 411099f
remove compilation error
pietroalbini 63df827
Fix warnings and lints
scrabsha c150537
better diagnostics
pietroalbini 74debd9
fix conflicts
scrabsha 5539b37
Missing docs
scrabsha f6bcabc
better rendering for ghost groups in tests
pietroalbini 83e82dd
use correct spacing when converting our tokentree into generic
pietroalbini 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
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
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.
Uh oh!
There was an error while loading. Please reload this page.