mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-17 10:05:23 +00:00
Add source_path to ParseError
This commit is contained in:
parent
cf10e800a6
commit
03ccd4b9d8
7 changed files with 55 additions and 49 deletions
|
@ -11,7 +11,7 @@
|
|||
//! use rustpython_parser::{parser, ast};
|
||||
//!
|
||||
//! let python_source = "print('Hello world')";
|
||||
//! let python_ast = parser::parse_expression(python_source).unwrap();
|
||||
//! let python_ast = parser::parse_expression(python_source, "<embedded>").unwrap();
|
||||
//!
|
||||
//! ```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue