-
Notifications
You must be signed in to change notification settings - Fork 1
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: create SymbolIterator for block parsing #106
Merged
Merged
Changes from 14 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
a2ca1d2
feat: create SymbolIterator
mhatzl 998d291
feat: switch block parser to SymbolIterator
mhatzl f1dc373
feat: add itertools for SymbolIterator
mhatzl de52811
feat: switch to nesting symbol iterators
mhatzl 5398be0
fix: add prefix line test for symbol iterator
mhatzl aba8224
feat: simplify iterator nesting parsers
nfejzic 88c3064
Merge branch 'symbol-iterator' of https://github.com/Unimarkup/unimar…
mhatzl fbefb50
fix: correct heading end closure to detect heading
mhatzl cd608b3
fix: ignore newlines between elements
mhatzl 32778c9
feat: make end-fn optional for new symbol iterator
mhatzl 1a5c5b0
fix: change end fns to get SymboliterMatcher
mhatzl b8d430b
fix: remove new_line from SymbolIterRoot
mhatzl 6ad4a8b
fix: remove remaining symbols from tokenize output
mhatzl c73286f
fix: correct prefix consumption for symbol iterator
mhatzl 27d8d70
fix: fix endless loop in peeking_next()
mhatzl 71171f3
fix: correct iterator length calculation
mhatzl 57f5f72
fix: prevent plain from merging with newline token
mhatzl 16c2a60
fix: implement rendering for whitespace inlines
mhatzl 1df4d76
fix: add comment why reset_peek() is needed
mhatzl f7cbbf8
fix: update verbatim to work with symbol iterator
mhatzl 6c3c28e
arch: split iterator into multiple files
mhatzl ee317d2
fix: add documentation for the symbol iterator
mhatzl 0d2c225
feat: add nesting depth to symbol iterator
mhatzl dd903f5
fix: add EOI symbol to match end as empty line
mhatzl b74c089
fix: remove EOI symbol for lexer tests
mhatzl 45f4a1f
fix: pin zerovec crate to specific version
mhatzl 8487538
fix: resolve icu dependency problems
mhatzl e1751f5
feat: update icu to not need any generated data
mhatzl f31143b
fix: remove crate_authors!() due to clippy warning
mhatzl 3746027
chore: remove lock file from vc after icu bump
mhatzl f8bab51
fix: add blankline for better readability
mhatzl b63b902
fix: use `debug_assert!()` instead of `cfg(debug_assertions)`
mhatzl 0ad2063
fix: make peeking_next() more compact
mhatzl 17e1956
fix: use owned Vec to create Paragraph from
mhatzl b20952f
fix: use `iter::once()` to create end sequence
mhatzl 0dc18ad
fix: remove double dot at end of sentence
mhatzl 85f46ff
fix: map length before unwrap of remaining_symbols
mhatzl 6e12f23
fix: improve comments for SymbolIterator
mhatzl 7235dfb
fix: remove Scanner struct
mhatzl 02c4505
fix: restrict visibility of iterator index fns
mhatzl 0d5c8ab
fix: remove duplicate From<> impls for iterators
mhatzl d489076
fix: remove *curr* prefix for iterator functions
mhatzl 01a148b
fix: remove *curr* prefix from index in root iterator
mhatzl d710917
fix: add assert to ensure update done on act parent
mhatzl a69de7a
chore: merge branch 'main' into symbol-iterator
mhatzl 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 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.
It could be a good idea to rename
Position
toSymPos
in general, since that's what it actually is 🤔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 think
SymbolPosition
would be better in that case, and I would also changeOffset
toSymbolOffset
.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.
SymbolPosition
is looooong 😆. It does read better though. Both options are fine for me, you're free to choose whatever you find better 👍🏻.P.S. if you can't choose, then choose randomly 🤣
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.
Or we keep the names and move them into the
symbol
module?I was thinking about this option, but then
scanner
becomes a bit useless?But removing scanner, by moving
symbol
up did not seem right to me.