swift-parsing
swift-parsing copied to clipboard
Possible to generate EBNF from a parser?
I have a parser, now I'm wondering if I can generate EBNF from this parser.
I realize that the generation will be imperfect because of possibly of custom code, but it seems like the information is there to generate most of the high level structure, I'm just not sure how to extract it in a systematic way.
Anyone have thoughts or pointers on how I might do this?