projects
/
sv2nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d554fd6
)
add extra pass-through rules
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 25 Apr 2019 16:33:22 +0000
(17:33 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 25 Apr 2019 16:33:22 +0000
(17:33 +0100)
parse_sv.py
patch
|
blob
|
history
diff --git
a/parse_sv.py
b/parse_sv.py
index 82cb55ebe00ccff568edd654d509628ec7c25d92..13c6eed323487e2f0f020f3f365b92d183adad72 100644
(file)
--- 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 '''