You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a markdown parser. As what we know, there are some feature extensions to the standard markdown grammar. So I want to provide some macros as switches and only compile a certain rules based on the switch.
One solution might be evaluating a C code expression as a precondition check.
Hello @tamlok , sorry for the late reply.
Currently, PackCC cannot provide a suitable solution. I recognize it's a big issue considering the indent-based grammar such as Markdown and Python (#79). I'm now developing a new feature to solve this. It may take a few months to release it.
Hi,
I am writing a markdown parser. As what we know, there are some feature extensions to the standard markdown grammar. So I want to provide some macros as switches and only compile a certain rules based on the switch.
One solution might be evaluating a C code expression as a precondition check.
I am trying to rewrite the PEG parser here in PackCC and it has the ability to use a C code expression as a precondition check: https://github.com/vnotex/peg-markdown-highlight/blob/20f17c03969a1655c39536bf78f3ee5c2a9dd9f7/pmh_grammar.leg#L97
What is the right way to do it in PackCC?
Thanks!
The text was updated successfully, but these errors were encountered: