Repeated scanning a line of text, with "recursion" #695
Replies: 1 comment 1 reply
-
I can't think of any relevant examples and markdown is a bit of a beast so I don't know how much I can help there besides unblocking you.
Could you post a subset of what you are trying that doesn't compile? Maybe focusing on that can then enable you to then figure out the next set of roadblocks. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to parse lines of text that could look like markdown at a basic level (but could be more like XML/HTML).
I can't seem to get the right combination of clauses though to parse even this example scenario:
**
represents bold and__
two underscores represent italics in this case.Encountering a single
*
is valid within the bold formatting block and wouldn't need to be escaped in any way.I expected some combination of
repeat
andopt
andalt
, but ..., nothing compiles, so I have zero to show. I want to gather the plain text and formatted text (and I mentioned recursion because my scanning needs to allow for nesting. I've looked a LOT for examples and there doesn't seem to be any quite like this. If there are examples that would help me learn ... I'll dive in!Beta Was this translation helpful? Give feedback.
All reactions