3 ms·
Most SQL systems (postgres, mysql, sqlite) use generated parsers but yeah other than that handwritten is the norm. Is there a reason for that? None that I can
by eatonphil 5y ago
Most SQL systems (postgres, mysql, sqlite) use generated parsers but yeah other than that handwritten is the norm.
Is there a reason for that? None that I can think of. SQL systems tend to have worse error messages but I don't believe parser generators require error messages to be as bad as SQL error messages (I'm talking about how they often don't give line number or column number info).
So my guess (and it sounds kind of absurd to say) is that most SQL systems just don't put much thought into parsing. And not that parser generators fit the domain better.