Eric Astor wrote:
There are ways to deal with these... putting off the
resolution until a
later pass is the only way I know of that deals with the first one, and
it's a bit touchy. Manageable, but touchy.
Clarification: The cases I mentioned can't be handled by a context-free
parser - but both of them are parseable if ''' is parsed as a
TOGGLE-BOLD item, and '' is handled similarly as a TOGGLE-ITALICS. That
lets you escape the context-sensitivity, and handle the rendering
properly on the output end while scanning left-to-right.
- Eric