pub fn compile_program_single(
    ast: ast::Program,
    source_path: String,
    optimize: u8,
) -> Result<CodeObject, CompileError> {
    with_compiler(source_path, optimize, |compiler| {
        let symbol_table = make_symbol_table(&ast)?;
        compiler.compile_program_single(&ast, symbol_table)
    })
}
/// Compile a Python program to bytecode for the context of a REPL
Compile a Python program to bytecode for the context of a REPL
Compile a Python program to bytecode for the context of a REPL
pub fn compile_program_single(
    ast: ast::Program,
    source_path: String,
    optimize: u8,
) -> Result<CodeObject, CompileError> {
    with_compiler(source_path, optimize, |compiler| {
        let symbol_table = make_symbol_table(&ast)?;
        compiler.compile_program_single(&ast, symbol_table)
    })
}
pub fn compile_program_single ( ast : ast :: Program , source_path : String , optimize : u8 , ) -> Result < CodeObject , CompileError > { with_compiler ( source_path , optimize , | compiler | { let symbol_table = make_symbol_table ( & ast ) ? ; compiler . compile_program_single ( & ast , symbol_table ) } ) }
Compile a Python program to bytecode for the context of a REPL
Compile a Python program to bytecode for the context of a REPL
ast
ast::Program
source_path
String
optimize
u8