lib/python/src/compile/root.zig
daab053ee43316e1809a84551d573ddd1e5bf3d2
1 //! The package's third stage turns a program's syntax tree into bytecode for the package's stack
2 //! machine. Each statement and expression has to become a run of stack-machine instructions with
3 //! the same effect, with jumps in place of the program's control flow.
4 //!
5 //! The namespace re-exports the file `compiler` and its function `compile`. The package's `execute`
6 //! calls `compile` right after `parse` and runs the `Chunk` it returns.
7 pub const compiler = @import("compiler.zig");
8
9 pub const compile = compiler.compile;