MCPcopy Create free account
hub / github.com/Genivia/ugrep / parse

Method parse

src/cnf.cpp:41–46  ·  view source on GitHub ↗

parse a pattern into an operator tree using a recursive descent parser

Source from the content-addressed store, hash-verified

39
40// parse a pattern into an operator tree using a recursive descent parser
41void CNF::OpTree::parse(const char *& pattern)
42{
43 do
44 parse1(pattern);
45 while (*pattern != '\0');
46}
47
48// <parse1> -> <parse2> { <space>+ [ 'AND' <space>+ ] <parse2> }*
49void CNF::OpTree::parse1(const char *& pattern)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected