From 5706fbd8905ae66191579b91d116f21d3844e4ed Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 4 Oct 2015 21:15:41 +0200 Subject: [PATCH] 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?" --- src/spicelib/parser/inpptree-parser.y | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spicelib/parser/inpptree-parser.y b/src/spicelib/parser/inpptree-parser.y index c12f0963d..53fd3d884 100644 --- a/src/spicelib/parser/inpptree-parser.y +++ b/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 (!$$)