Move dfa's to tables.h

This commit is contained in:
2025-06-23 14:15:05 -04:00
parent 5df9d958ab
commit 451c07747e
4 changed files with 631 additions and 629 deletions

View File

@@ -309,7 +309,7 @@ TEST_CASE("bench5") {
}
TEST_CASE("num dfa") {
parser3::NumDfa dfa;
NumDfa dfa;
std::string match =
"111111111111111111111111111111111111111111111111111111111111111111111111"
"111111111111111111111111111111111111111111111111111111111111111111111111"
@@ -339,7 +339,7 @@ const char *utf8str =
"💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩";
TEST_CASE("utf8 dfa") {
parser3::Utf8Dfa dfa;
Utf8Dfa dfa;
std::string match = utf8str;
auto *buf = dfa.scan(match.data(), match.data() + match.size());
CHECK(buf == match.data() + match.size());