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?"
This commit is contained in:
rlar 2015-10-04 21:15:41 +02:00
parent 507e2ecca6
commit 5706fbd890
1 changed files with 1 additions and 0 deletions

View File

@ -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 (!$$)