commit | 14c91c1ebd68daacce9794cf8894dcfea68efd7b | [log] [tgz] |
---|---|---|
author | Andy Chu <andychu@google.com> | Tue Mar 15 13:42:30 2016 -0700 |
committer | Rob Landley <rob@landley.net> | Wed Mar 16 11:59:56 2016 -0500 |
tree | 052b6e72b9e3fa926e70a5f01690863836a8d2c6 | |
parent | 2665cd0cf0d1116fae397d5b598a5ae1bd055afa [diff] |
Fix the operator precedence in expr. expr now uses the precedence table specified by POSIX, implemented using the "precedence climbing" algorithm. See the references at the top of eval_expr(). This fixes 3 of 4 failing tests. I also added more tests for correct behavior and for syntax errors. This includes a new test exposing a segfault, related to type coercion.