codex
Loading...
Searching...
No Matches
lexer.hpp File Reference
#include "utils.hpp"
Include dependency graph for lexer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

constexpr std::string_view ignore_interm (std::string_view s)
 
constexpr std::string_view consume (std::string_view s, std::string_view c)
 
template<fixed_string s>
constexpr bool set_contains (char c)
 
constexpr std::string_view consume_set_common (std::string_view s, auto i)
 
template<fixed_string p>
constexpr std::string_view consume_set (std::string_view s)
 
template<fixed_string p>
constexpr std::string_view consume_set_comp (std::string_view s)
 

Variables

constexpr fixed_string SPACE = " \t\n"
 
constexpr fixed_string DIGITS = "0123456789"
 
constexpr fixed_string IDENT0
 
constexpr fixed_string IDENT1 = IDENT0 + DIGITS
 

Function Documentation

◆ consume()

std::string_view consume ( std::string_view s,
std::string_view c )
constexpr
Here is the caller graph for this function:

◆ consume_set()

template<fixed_string p>
std::string_view consume_set ( std::string_view s)
constexpr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ consume_set_common()

std::string_view consume_set_common ( std::string_view s,
auto i )
constexpr
Here is the caller graph for this function:

◆ consume_set_comp()

template<fixed_string p>
std::string_view consume_set_comp ( std::string_view s)
constexpr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ignore_interm()

std::string_view ignore_interm ( std::string_view s)
constexpr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_contains()

template<fixed_string s>
bool set_contains ( char c)
constexpr
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DIGITS

fixed_string DIGITS = "0123456789"
constexpr

◆ IDENT0

fixed_string IDENT0
constexpr
Initial value:
=
"abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"_"

◆ IDENT1

fixed_string IDENT1 = IDENT0 + DIGITS
constexpr

◆ SPACE

fixed_string SPACE = " \t\n"
constexpr