From a7e298e37617765d26cd29a4001312d984570ef9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 25 Apr 2019 17:33:22 +0100 Subject: [PATCH] add extra pass-through rules --- parse_sv.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parse_sv.py b/parse_sv.py index 82cb55e..13c6eed 100644 --- a/parse_sv.py +++ b/parse_sv.py @@ -3237,7 +3237,6 @@ def p_expression_1(p): '''expression : expr_primary_or_typename ''' print('expression_1', list(p)) p[0] = p[1] - p[0] = p[1] () def p_expression_2(p): '''expression : inc_or_dec_expression ''' @@ -3252,7 +3251,7 @@ def p_expression_3(p): def p_expression_4(p): '''expression : '+' attribute_list_opt expr_primary %prec UNARY_PREC ''' print('expression_4', list(p)) - # { $$ = $3; } + p[0] = p[3] () def p_expression_5(p): '''expression : '-' attribute_list_opt expr_primary %prec UNARY_PREC ''' -- 2.30.2