Lichen

compiler/__init__.py

328:7ce269cf4539
2016-12-06 Paul Boddie Moved native I/O function usage to functions in the posix.io module, employing these functions in the built-in file object. Added the raising of IOError in native functions. Added a tentative read native function implementation. Added a tentative fdopen native function implementation and a miscellaneous datavalue member to the __attr structure. Moved the read function into the posix.io module. Temporarily removed imports from the posix top-level module.
     1 """Package for parsing and compiling Python source code     2      3 There are several functions defined at the top level that are imported     4 from modules contained in the package.     5      6 parse(buf, mode="exec") -> AST     7     Converts a string containing Python source code to an abstract     8     syntax tree (AST).  The AST is defined in compiler.ast.     9     10 parseFile(path) -> AST    11     The same as parse(open(path))    12 """    13     14 from compiler.transformer import parse, parseFile