Function rustpython_vm::compiler::codegen::compile::compile_program_single
source · pub fn compile_program_single(
ast: &[Stmt<SourceRange>],
source_path: String,
opts: CompileOpts
) -> Result<CodeObject<ConstantData>, LocatedError<CodegenErrorType>>
Expand description
Compile a Python program to bytecode for the context of a REPL