mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-24 21:44:45 +00:00
Add source_path to ParseError
This commit is contained in:
parent
a66902406f
commit
3742f9117b
5 changed files with 45 additions and 35 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