2016-10-29 | Paul Boddie | raw annotate files changeset graph | Fixed attribute access numbering, local name assignments, and the generation of contexts in attributes obtained for static objects. Added return statements at the end of functions, avoiding superfluous statements if any return statement already exists. Introduced initial exception code generation and more reasonable boolean tests. Introduced #undef directives to undefine local names at the end of functions. Introduced more attribute access testing functions, making their results usable. Fixed lone access instruction arguments that are static objects, making them references. |
1 #!/usr/bin/env python 2 3 class ASTType: 4 pass 5 6 class ParserError(Exception): 7 pass 8 9 class STType: 10 pass 11 12 def ast2list(ast): pass 13 def ast2tuple(ast): pass 14 def compileast(ast, filename=None): pass 15 def compilest(st): pass 16 def expr(s): pass 17 def isexpr(ast): pass 18 def issuite(ast): pass 19 def sequence2ast(sequence): pass 20 def sequence2st(sequence): pass 21 def st2list(st, line_info=None, col_info=None): pass 22 def st2tuple(st, line_info=None, col_info=None): pass 23 def suite(suite): pass 24 def tuple2ast(sequence): pass 25 def tuple2st(sequence): pass 26 27 # vim: tabstop=4 expandtab shiftwidth=4