From: Luke Kenneth Casson Leighton Date: Thu, 25 Apr 2019 16:33:22 +0000 (+0100) Subject: add extra pass-through rules X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7e298e37617765d26cd29a4001312d984570ef9;p=sv2nmigen.git add extra pass-through rules --- 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 '''