3 ms·
Having written my own CommonMark parser, I often wonder if I should have used some kind of parser generator. Can I use this to parse CommonMark (in 100% complia
by renke1 6y ago
Having written my own CommonMark parser, I often wonder if I should have used some kind of parser generator. Can I use this to parse CommonMark (in 100% compliant way)? – And, can I parse it such that I can recreate the original Markdown based on the resulting model?
- gosukiwi 6y agoI think Pasukon should perform similarly to a hand-written recursive descent parser. If you already have something going, I don't see much benefit in porting it, besides ease of creating and maintaining the parser. It can parse any context-free language, so it should have no problem parsing CommonMark.