Re:Just Write the Parser
by Terr_ on Thursday October 22, 2020 @06:26AM
(#24856548)
It may be worth distinguishing between:
1. Having a formal grammar definition as the authoritative spec
2. Using the formal grammar definition to generate your parser
#1 is quite valuable on its own, even if you don't want to do #2. It can be analyzed for ambiguities and inconsistencies, and you avoid the tar-pit of "the original implementation is the spec".
1. Having a formal grammar definition as the authoritative spec
2. Using the formal grammar definition to generate your parser
#1 is quite valuable on its own, even if you don't want to do #2. It can be analyzed for ambiguities and inconsistencies, and you avoid the tar-pit of "the original implementation is the spec".