▲ | marssaxman 4 days ago | |||||||||||||||||||||||||||||||
I have never found parser generators to be worth the hassle. Recursive descent with a little Pratt-style precedence climbing is all you need. | ||||||||||||||||||||||||||||||||
▲ | derriz 4 days ago | parent [-] | |||||||||||||||||||||||||||||||
Agree completely and I’ve used a bunch of them and also functional combinator libraries. I‘d go further and say the recursive descent and Pratt approach is the way if you want to offer useful error messages and feedback to the user. They’re also trivial to debug and test unlike any generation based approach. | ||||||||||||||||||||||||||||||||
|