MCPcopy Create free account
hub / github.com/Glyphack/enderpy / parse_enderpy_source

Function parse_enderpy_source

compat/src/parser_compat.rs:112–117  ·  view source on GitHub ↗
(source: &str)

Source from the content-addressed store, hash-verified

110}
111
112fn parse_enderpy_source(source: &str) -> Result<Value> {
113 let mut parser = Parser::new(source);
114 let typed_ast = parser.parse().into_diagnostic()?;
115 let ast = typed_ast.as_python_compat(&parser);
116 Ok(ast)
117}
118
119#[allow(unused_macros)]
120macro_rules! parser_test {

Callers 1

python_parser_test_astFunction · 0.85

Calls 2

parseMethod · 0.80
as_python_compatMethod · 0.80

Tested by

no test coverage detected