Parse the given Python source code using the specified [`ParseOptions`]. This function is the most general function to parse Python code. Based on the [`Mode`] supplied via the [`ParseOptions`], it can be used to parse a single expression, a full Python program, an interactive expression or a Python program containing IPython escape commands. # Example If we want to parse a simple expression, w
(source: &str, options: ParseOptions)
| 279 | /// assert!(parsed.is_ok()); |
| 280 | /// ``` |
| 281 | pub fn parse(source: &str, options: ParseOptions) -> Result<Parsed<Mod>, ParseError> { |
| 282 | parse_unchecked(source, options).into_result() |
| 283 | } |
| 284 | |
| 285 | /// Parse the given Python source code using the specified [`ParseOptions`]. |
| 286 | /// |