Skip to content

Karial/regex-cpp-parser

Repository files navigation

regex-cpp-parser

Simple regex cpp parser library. Usage:

  • Using deterministic automata
std::stringstream in("a*b+");
auto fastDfa = CreateFastFiniteAutomataFromStream(&in);
fastDfa.Check("aaabbbb"); // true
fastDfa.Check("aaba");    // false
fastDfa.Check("abc");     // false
  • Using non deterministic automata
std::stringstream in("a*b+");
auto ast = CreateASTFromStream(&in);
auto nfa = CreateNFAFromAST(ast.get());
nfa.Check("aaabbbb"); // true
nfa.Check("aaba");    // false
nfa.Check("abc");     // false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published