by 1vuio0pswjnm7 · 5y ago · 0 comments
Imagine, for example, that the input being parsed is not under the authors control and it suddenly changes. The parser must be changed.
As a practical matter the grammar can act like a contract between the two systems. You don't have control of the input, but the input must follow the same grammar.
I don't work on parsers and grammar day to day, so I might not be the best person to ask about this. I am interested in the subject though. I just don't get to work on this in my current day job.