3 ms·
> I dont understand why would you want to approach those problems in such a way, or at least describe it in such a way that feels so out of touch with programmi
by avgcorrection 4y ago
> I dont understand why would you want to approach those problems in such a way, or at least describe it in such a way that feels so out of touch with programming
I don’t know. But the “langsec” (language security) branch of software security argues that a lot of security issues stem from insecure approaches to parsing.
I don’t know how much the theory of parsing helps with that. But it can help you make sure that your grammar has certain properties.
- hardware2win 4y agoI dont think grammar theory is related to that. Bigger factor seems to be strong standard library with safe string primitives Aka NOT C.
- peterfirefly 4y agoA lot of it has to do with having more than one parser for the same thing -- it's bad if they don't agree on the meaning of the input. That has everything to do with grammar theory (and with how clumsy parser generators are and with how brittle many hand-written parsers are and how often they don't quite implement the spec).