From bdef6b60f3f6c9e44b2a5c66a95466e82be9a21e Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Fri, 16 Sep 1994 07:28:22 +0000 Subject: * 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. --- gdb/ch-lang.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/ch-lang.c') 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} }; -- cgit v1.1