News for hackers. Stuff that matters.
Re:Kernel 101 – Let’s write a Kernel by bronxbomber92 on Monday April 14, 2014 @05:09PM (#7588970)
Writing an expression parser is probably the compiler "equivalent": http://www.strchr.com/expression_evaluator
Re:Kernel 101 – Let’s write a Kernel by anaphor on Monday April 14, 2014 @08:19PM (#7589667)
More like an expression parser that doesn't handle precedence or unary operators

FYI, I recommend using the precedence climbing algorithm if you do need to do expression parsing: http://eli.thegreenplace.net/2012/08/02/parsing-expressions-...

It fits very well into a full recursive descent parser and is much more efficient and flexible than hardcoding in productions for handling the operators (and you can dynamically add new ones easily).