Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You mean "f x y" instead of e.g. "f(x,y)"?

You can generalize that into handling operators of various arity both before and after the operator.

E.g. I once had a parser that would handle "x op y z". I don't recall why - it was 30+ years ago, but I can back up that it's a fairly simple modification to expand precedence based parsers this way.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: