ruiu added a comment. I'll submit this patch since you have signed off. But I'd think you just need time to familiarize yourself with this algorithm, then you'd find this actually simpler to parse arithmetic expressions. This is really a good one. :) http://reviews.llvm.org/D19237