News for hackers. Stuff that matters.
Re:We Need to Know LR and Recursive Descent Parsing Techniques by bruce343434 on Tuesday January 17, 2023 @01:39PM (#34416691)
When you do precedence like this in recdesc, you will get functions like parse_prec_1, parse_prec_2 and so forth. If you generalize this function body, and pass along a "current precedence", then generalize the precedences for each operator into a table, you have just reinvented Pratt Parsing.

There are no comments on this comment yet.