#include <cstdint>
#include <memory>
#include <vector>
#include <string_view>
#include <string>
#include <locale>
#include <fstream>
#include <functional>
#include <cstdarg>
#include <iostream>
#include <optional>
#include <sstream>
#include <cassert>
#include <algorithm>
Go to the source code of this file.
|
std::string | char_to_hex (char c) |
|
std::string | string_to_hex (std::string_view const s, int32_t start, int32_t count) |
|
std::string | final_match_condition_internal (std::string_view const key, int32_t starting_position, int32_t ending_position) |
|
std::string | final_match_condition (std::string_view const key, size_t starting_position, size_t ending_position) |
|
template<typename V , typename F > |
void | enum_with_prefix (V const &vector, std::string_view const prefix, int32_t length, F const &fn) |
|
template<typename V > |
int32_t | count_with_prefix (V const &vector, std::string_view const prefix, int32_t length) |
|
template<typename V > |
int32_t | max_length (V const &vector) |
|
int | main (int argc, char *argv[]) |
|
◆ token_type
Enumerator |
---|
none | |
group_ident | |
group_item_ident | |
ident | |
lparen | |
rparen | |
newline | |
Definition at line 56 of file parser_generator.cpp.
◆ char_to_hex()
std::string char_to_hex |
( |
char |
c | ) |
|
◆ count_with_prefix()
template<typename V >
int32_t count_with_prefix |
( |
V const & |
vector, |
|
|
std::string_view const |
prefix, |
|
|
int32_t |
length |
|
) |
| |
◆ enum_with_prefix()
template<typename V , typename F >
void enum_with_prefix |
( |
V const & |
vector, |
|
|
std::string_view const |
prefix, |
|
|
int32_t |
length, |
|
|
F const & |
fn |
|
) |
| |
◆ final_match_condition()
std::string final_match_condition |
( |
std::string_view const |
key, |
|
|
size_t |
starting_position, |
|
|
size_t |
ending_position |
|
) |
| |
◆ final_match_condition_internal()
std::string final_match_condition_internal |
( |
std::string_view const |
key, |
|
|
int32_t |
starting_position, |
|
|
int32_t |
ending_position |
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ max_length()
template<typename V >
int32_t max_length |
( |
V const & |
vector | ) |
|
◆ string_to_hex()
std::string string_to_hex |
( |
std::string_view const |
s, |
|
|
int32_t |
start, |
|
|
int32_t |
count |
|
) |
| |