Add an example on how to implement a parser for interspersed input #468
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.
While looking at the documentation I found some things that I could be improved so here is a PR for that.
I was specifically looking to see how I could implement something to parse
"a,b,c"
and extracta
,b
andc
. I found that soft could be used for that and because I think it's a common pattern in parsers, I figured it could be useful to have an example in the documentation.On top of that, I get feedback from experts to tell me if that solution is bad and what would be a better alternative, win-win!
One annoying thing about the
docs/index.md
is that yes, it's compiled but it's not the actual output of mdoc and so the result in there are hard coded. I found it annoying to go intosite/target/mdoc/index.md
and retrieve the output and format it to fit with the rest of the document. Is there a better way?