Browse Source

parser/inpptree-parser.y, bug fix, allow unary `+'

reported by Andy Fierman on the ngspice-users mailing list in message
  "Help to identify 'parameter value out of range or the wrong type' error please?"
pre-master-46
rlar 11 years ago
parent
commit
5706fbd890
  1. 1
      src/spicelib/parser/inpptree-parser.y

1
src/spicelib/parser/inpptree-parser.y

@ -96,6 +96,7 @@ exp:
| '(' exp ')' { $$ = $2; }
| '-' exp %prec NEG { $$ = PT_mkfnode("-",$2); }
| '+' exp %prec NEG { $$ = $2; }
| TOK_STR '(' nonempty_arglist ')' { $$ = PT_mkfnode($1, $3);
if (!$$)

Loading…
Cancel
Save