Re:We Need to Know LR and Recursive Descent Parsing Techniques
by hinkley on Tuesday January 17, 2023 @11:03AM
(#34414152)
No, we don’t.
I’ve tried to learn both of these several times each, and what happens is that each time I end up yelling at my computer, “but we don’t parse/read programs that way!” And I simply cannot participate in this level of fiction so I find another solution or hobby. Neither of them is a good fit for C derived languages and no developer I’ve done DX studies with decomposes code the way either of them do. I absolutely do not.
Last time I looked, the only one I found that’s close to right is SGLR.
I’ve tried to learn both of these several times each, and what happens is that each time I end up yelling at my computer, “but we don’t parse/read programs that way!” And I simply cannot participate in this level of fiction so I find another solution or hobby. Neither of them is a good fit for C derived languages and no developer I’ve done DX studies with decomposes code the way either of them do. I absolutely do not.
Last time I looked, the only one I found that’s close to right is SGLR.