MCPcopy Create free account
hub / github.com/davidblewett/rure-python / cmd_ast

Function cmd_ast

regex/regex-debug/src/main.rs:122–129  ·  view source on GitHub ↗
(args: &Args)

Source from the content-addressed store, hash-verified

120}
121
122fn cmd_ast(args: &Args) -> Result<()> {
123 use syntax::ast::parse::Parser;
124
125 let mut parser = Parser::new();
126 let ast = parser.parse(&args.arg_pattern)?;
127 println!("{:#?}", ast);
128 Ok(())
129}
130
131fn cmd_hir(args: &Args) -> Result<()> {
132 use syntax::ParserBuilder;

Callers 1

runFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected