How to write parser?

crimaniak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 15 13:57:31 PDT 2017


On Sunday, 14 May 2017 at 19:00:09 UTC, Suliman wrote:
> I am trying to learn how to write text parser. I have example 
> doc with follow format:
>
> #Header
> my header text
>
> ##SubHeader
> my sub header text
>

> it's there any better way to parse such format?

Ready markdown Pegged based parser:
https://github.com/PhilippeSigaud/Pegged/blob/master/pegged/examples/markdown.d


More information about the Digitalmars-d-learn mailing list