3#include <absl/container/flat_hash_map.h>
12 if (erroring_)
return nullptr;
13 if (
auto i = transitions_.find(c); i != transitions_.end())
return i->second;
20 auto print_char = [](std::uint16_t c) -> std::string {
21 if (c >= 48 && c <= 122)
return {
static_cast<char>(c)};
22 return std::to_string(c);
const DFANode * get_transition(std::uint16_t c) const
void add_transition(const DFANode *to, std::uint16_t c)
std::ostream & operator<<(std::ostream &os, const DFANode &node)
std::ostream & print_node(std::ostream &os, const NodeType &node, PrintCharF &&print_char)