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:
parent
507e2ecca6
commit
5706fbd890
|
|
@ -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…
Reference in New Issue