// Copyright 2026 Thomas Santerre and Moderately AI Inc.
//// SPDX-License-Identifier: MIT OR Apache-2.0
userustpython_parser::{
Parse,ast::{self, Suite},};usecrate::error::InterpreterError;/// Parse Python source code into an AST suite (list of statements).
pubfnparse(code:&str)->Result<Suite, InterpreterError>{ast::Suite::parse(code,"<interpreter>").map_err(|e|InterpreterError::Syntax(format!("{e}")))}