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

Function run

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

Source from the content-addressed store, hash-verified

98}
99
100fn run(args: &Args) -> Result<()> {
101 if args.cmd_ast {
102 cmd_ast(args)
103 } else if args.cmd_hir {
104 cmd_hir(args)
105 } else if args.cmd_prefixes {
106 cmd_literals(args)
107 } else if args.cmd_suffixes {
108 cmd_literals(args)
109 } else if args.cmd_anchors {
110 cmd_anchors(args)
111 } else if args.cmd_captures {
112 cmd_captures(args)
113 } else if args.cmd_compile {
114 cmd_compile(args)
115 } else if args.cmd_utf8_ranges {
116 cmd_utf8_ranges(args)
117 } else {
118 unreachable!()
119 }
120}
121
122fn cmd_ast(args: &Args) -> Result<()> {
123 use syntax::ast::parse::Parser;

Callers 1

mainFunction · 0.85

Calls 7

cmd_astFunction · 0.85
cmd_hirFunction · 0.85
cmd_literalsFunction · 0.85
cmd_anchorsFunction · 0.85
cmd_capturesFunction · 0.85
cmd_compileFunction · 0.85
cmd_utf8_rangesFunction · 0.85

Tested by

no test coverage detected