Nice project. This is for #161. Fixing it exposed another bug which is also now fixed. I think the commit messages and the comment in the second diff should explain well enough.
I don't like the idea of putting arith_nested_parens in the parser struct though. It can't be static to arithmetic_word because that is called in a loop by a general function. It can be static to the file, if that is more preferred.
Nice project. This is for #161. Fixing it exposed another bug which is also now fixed. I think the commit messages and the comment in the second diff should explain well enough.
I don't like the idea of putting
arith_nested_parens
in theparser
struct though. It can't bestatic
toarithmetic_word
because that is called in a loop by a general function. It can bestatic
to the file, if that is more preferred.