Exemple #1
0
 def p_block(self, p):
     """block : LBRACE source_elements RBRACE"""
     p[0] = ast.Block(p[2], lineno=p.lineno(2))
Exemple #2
0
 def p_block(self, p):
     """block : LBRACE source_elements RBRACE"""
     p[0] = ast.Block(p[2])