News for hackers. Stuff that matters.
Re:Just Write the Parser by myk9001 on Wednesday October 21, 2020 @07:24PM (#24853392)
Take a look at "Parsing expressions by precedence climbing"[1] by Eli Bendersky.

See the "Other resources" section for other approaches to this problem.

1: https://eli.thegreenplace.net/2012/08/02/parsing-expressions...

Re:Just Write the Parser by musicale on Wednesday October 21, 2020 @10:50PM (#24854450)
1) Like the original article, this leaves unary operators as an exercise for the reader (though it does note so explicitly and provides a small hint)

2) This looks more like Pratt parsing vs. the approach described in the article

3) I was asking the original author