diff options
author | Per Bothner <per@bothner.com> | 1994-09-16 07:28:22 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1994-09-16 07:28:22 +0000 |
commit | bdef6b60f3f6c9e44b2a5c66a95466e82be9a21e (patch) | |
tree | 2987b7919de30ef519069a7b8e9d10e8bb17f451 /gdb/ch-lang.c | |
parent | 4b4e568a4cecf2beda448b93e2f9c41458166aba (diff) | |
download | gdb-bdef6b60f3f6c9e44b2a5c66a95466e82be9a21e.zip gdb-bdef6b60f3f6c9e44b2a5c66a95466e82be9a21e.tar.gz gdb-bdef6b60f3f6c9e44b2a5c66a95466e82be9a21e.tar.bz2 |
* ch-exp.y: Get rid of some extra non-terminals, and move
their rules into primitive_value.
* ch-lang.c (chill_op_print_tab): Add '->'.
* expprint.c (print_subexp): Recognize unary postfix operator.
Diffstat (limited to 'gdb/ch-lang.c')
-rw-r--r-- | gdb/ch-lang.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/ch-lang.c b/gdb/ch-lang.c index e1ac3e7..bfd7728 100644 --- a/gdb/ch-lang.c +++ b/gdb/ch-lang.c @@ -280,6 +280,8 @@ static const struct op_print chill_op_print_tab[] = { {"/", BINOP_DIV, PREC_MUL, 0}, {"//", BINOP_CONCAT, PREC_PREFIX, 0}, /* FIXME: precedence? */ {"-", UNOP_NEG, PREC_PREFIX, 0}, + {"->", UNOP_IND, PREC_SUFFIX, 1}, + {"->", UNOP_ADDR, PREC_PREFIX, 0}, {NULL, 0, 0, 0} }; |