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

Method parse

regex/regex-syntax/src/ast/parse.rs:344–346  ·  view source on GitHub ↗

Parse the regular expression into an abstract syntax tree.

(&mut self, pattern: &str)

Source from the content-addressed store, hash-verified

342
343 /// Parse the regular expression into an abstract syntax tree.
344 pub fn parse(&mut self, pattern: &str) -> Result<Ast> {
345 ParserI::new(self, pattern).parse()
346 }
347
348 /// Parse the regular expression and return an abstract syntax tree with
349 /// all of the comments found in the pattern.

Callers 3

roundtrip_withFunction · 0.45
roundtrip_withFunction · 0.45
parseFunction · 0.45

Calls 2

mapMethod · 0.80
parse_with_commentsMethod · 0.80

Tested by

no test coverage detected