summaryrefslogtreecommitdiff
path: root/pycparser/c_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'pycparser/c_parser.py')
-rw-r--r--pycparser/c_parser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pycparser/c_parser.py b/pycparser/c_parser.py
index 0536e58..be30b01 100644
--- a/pycparser/c_parser.py
+++ b/pycparser/c_parser.py
@@ -1564,6 +1564,10 @@ class CParser(PLYParser):
p[1].exprs.append(p[3])
p[0] = p[1]
+ def p_parenthesized_compound_expression(self, p):
+ """ assignment_expression : LPAREN compound_statement RPAREN """
+ p[0] = p[2]
+
def p_typedef_name(self, p):
""" typedef_name : TYPEID """
p[0] = c_ast.IdentifierType([p[1]], coord=self._token_coord(p, 1))