Commit df9dbb4e authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder
Browse files

treat as 0+exp. Remove duplicate production.

2000-01-18  Morten Welinder  <terra@diku.dk>

	* src/parser.y (exp -> + exp): treat as 0+exp.  Remove duplicate
 	production.
parent 55af7b10
2000-01-18 Morten Welinder <terra@diku.dk>
* src/parser.y (exp -> + exp): treat as 0+exp. Remove duplicate
production.
2000-01-18 Morten Welinder <terra@diku.dk>
* plugins/Makefile.am (SUBDIRS): Delete the superseded stat
......
2000-01-18 Morten Welinder <terra@diku.dk>
* src/parser.y (exp -> + exp): treat as 0+exp. Remove duplicate
production.
2000-01-18 Morten Welinder <terra@diku.dk>
* plugins/Makefile.am (SUBDIRS): Delete the superseded stat
......
......@@ -344,10 +344,13 @@ exp: NUMBER { $$ = $1; }
| exp '%' { $$ = build_unary_op (OPER_PERCENT, $1); }
| '-' exp %prec NEG { $$ = build_unary_op (OPER_NEG, $2); }
| '+' exp %prec PLUS { $$ = $2; }
| '+' exp %prec PLUS {
$$ = $2;
/* count(+a1) is 1, if a1 is blank. Treat +a1 as 0+a1. */
unregister_allocation ($2);
$$ = register_expr_allocation (
expr_tree_new_binary (expr_tree_new_constant (value_new_int (0)),
OPER_ADD,
$2));
}
| '{' array_cols '}' {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment