3 ms·
It may be worth distinguishing between: 1. Having a formal grammar definition as the authoritative spec 2. Using the formal grammar definition to generate you
by Terr_ 6y ago
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".