Exemplo n.º 1
0
 def p_program_tail(p):
     """ program : statement program """
     p[0] = AST.ProgramStatement(p.linespan(0), [p[1]] + p[2].statements)
Exemplo n.º 2
0
 def p_program_head(p):
     """ program : """
     p[0] = AST.ProgramStatement(p.linespan(0), [])