Пример #1
0
 def p_program(self, p):
     """program : source_elements"""
     p[0] = ast.Program(p[1], lineno=p.lineno(1))
Пример #2
0
 def p_program(self, p):
     """program : source_elements"""
     p[0] = ast.Program(p[1])