diff options
author | Josh Stone <jistone@redhat.com> | 2010-02-24 17:12:09 -0800 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2010-02-24 17:12:09 -0800 |
commit | 1cb79a7245a86f563a8e54a0b47937f253636bde (patch) | |
tree | 95c4c65fd54f54e71c521705af07764e965df6d7 /parse.cxx | |
parent | a7e58d4c674003f192c4c8a834e80a3c23f9ec2e (diff) | |
download | systemtap-steved-1cb79a7245a86f563a8e54a0b47937f253636bde.tar.gz systemtap-steved-1cb79a7245a86f563a8e54a0b47937f253636bde.tar.xz systemtap-steved-1cb79a7245a86f563a8e54a0b47937f253636bde.zip |
Permit chained unary operators
The operand of a unary may be yet another unary. This is useful for
things like boolean normalization, !!x.
* parse.cxx (parser::parse_unary): Recurse the operand.
* testsuite/parseok/eleven.stp: Add chained unary operators.
Diffstat (limited to 'parse.cxx')
-rw-r--r-- | parse.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2289,7 +2289,7 @@ parser::parse_unary () e->op = t->content; e->tok = t; next (); - e->operand = parse_crement (); + e->operand = parse_unary (); return e; } else |