mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-09 22:25:23 +00:00
Flatten rustpython_parser interface
This commit is contained in:
parent
a8d4de27ed
commit
bf3f3eca62
9 changed files with 174 additions and 184 deletions
|
@ -86,7 +86,7 @@ impl CompileContext {
|
|||
}
|
||||
}
|
||||
|
||||
/// Compile an ast::Mod produced from rustpython_parser::parser::parse()
|
||||
/// Compile an ast::Mod produced from rustpython_parser::parse()
|
||||
pub fn compile_top(
|
||||
ast: &ast::Mod,
|
||||
source_path: String,
|
||||
|
@ -2846,7 +2846,7 @@ mod tests {
|
|||
use super::{CompileOpts, Compiler};
|
||||
use crate::symboltable::SymbolTable;
|
||||
use rustpython_compiler_core::CodeObject;
|
||||
use rustpython_parser::parser;
|
||||
use rustpython_parser as parser;
|
||||
|
||||
fn compile_exec(source: &str) -> CodeObject {
|
||||
let mut compiler: Compiler = Compiler::new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue