Classes | Namespaces | Macros | Typedefs | Functions | Variables
literal.hpp File Reference
#include <lexy/_detail/code_point.hpp>
#include <lexy/_detail/integer_sequence.hpp>
#include <lexy/_detail/iterator.hpp>
#include <lexy/_detail/nttp_string.hpp>
#include <lexy/_detail/swar.hpp>
#include <lexy/dsl/base.hpp>
#include <lexy/dsl/token.hpp>
Include dependency graph for literal.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lexyd::_cfl< Literal, CaseFolding >
 
struct  lexy::_detail::lit_trie_matcher< Trie, CurNode >::_impl< Indices >
 
struct  lexy::_detail::lit_trie_matcher< Trie, CurNode >::_impl< index_sequence< Idx... > >
 
struct  lexyd::_lcp< Cp >
 
struct  lexyd::_lit< CharT, C >
 
struct  lexyd::_lset< Literals >
 
struct  lexy::_detail::_merge_case_folding< CurrentCaseFolding, Literals >
 
struct  lexy::_detail::_merge_case_folding< CurrentCaseFolding >
 
struct  lexy::_detail::_merge_case_folding< CurrentCaseFolding, H, T... >
 
struct  lexy::_detail::_merge_case_folding< void >
 
struct  lexy::_detail::_node_char_class_impl< CharClassIdx, bool,... >
 
struct  lexy::_detail::_node_char_class_impl< 0, true, H, T... >
 
struct  lexy::_detail::_node_char_class_impl< Idx, true, H, T... >
 
struct  lexyd::_lcp< Cp >::_string_t< Encoding >
 
class  lexy::_symbol_table< T, CaseFolding, Strings >
 
struct  lexy::_detail::char_class_list< CharClasses >
 
struct  lexy::expected_literal_set
 
struct  lexy::_detail::lit_trie< Encoding, CaseFolding, MaxCharCount, CharClasses >
 
struct  lexy::_detail::lit_trie_matcher< Trie, CurNode >
 
struct  lexy::_detail::lit_trie_matcher< Trie, CurNode >
 
struct  lexyd::_lset< Literals >::tp< Reader >
 
struct  lexyd::_lcp< Cp >::tp< Reader, Indices >
 
struct  lexyd::_lit< CharT, C >::tp< Reader >
 
struct  lexyd::_lcp< Cp >::tp< Reader, lexy::_detail::index_sequence< Idx... > >
 

Namespaces

 lexy
 
 lexy::_detail
 
 lexyd
 

Macros

#define LEXY_LIT(Str)   LEXY_NTTP_STRING(::lexyd::_lit, Str) {}
 
#define LEXY_LITERAL_SET(...)
 

Typedefs

template<std::size_t CharClassIdx, typename... CharClasses>
using lexy::_detail::_node_char_class = _node_char_class_impl< CharClassIdx,(CharClassIdx< sizeof...(CharClasses)), CharClasses... >
 
template<typename Reader >
using lexy::_detail::lit_no_case_fold = Reader
 
template<typename Encoding , typename... Literals>
using lexy::_detail::lit_trie_for = decltype(make_empty_trie< Encoding, Literals... >())
 

Functions

template<template< typename > typename CaseFolding, typename CharT , CharT... C>
constexpr auto lexyd::_make_lit_rule (lexy::_detail::type_string< CharT, C... >)
 
template<typename T , template< typename > typename CaseFolding, typename... Strings>
constexpr auto lexyd::literal_set (const lexy::_symbol_table< T, CaseFolding, Strings... >)
 Matches one of the symbols in the symbol table. More...
 
template<typename... Literals>
constexpr auto lexyd::literal_set (Literals...)
 Matches one of the specified literals. More...
 
template<typename Encoding , typename... Literals>
LEXY_CONSTEVAL auto lexy::_detail::make_empty_trie ()
 
template<std::size_t CurCharIndex, typename CharT , CharT... Cs, typename Reader >
constexpr auto lexy::_detail::match_literal (Reader &reader)
 

Variables

template<unsigned char... C>
constexpr auto lexyd::lit_b = _lit<unsigned char, C...>{}
 
template<auto C>
constexpr auto lexyd::lit_c = _lit<LEXY_DECAY_DECLTYPE(C), C>{}
 
template<char32_t... CodePoint>
constexpr auto lexyd::lit_cp = _lcp<CodePoint...>{}
 

Macro Definition Documentation

◆ LEXY_LIT

#define LEXY_LIT (   Str)    LEXY_NTTP_STRING(::lexyd::_lit, Str) {}

Definition at line 392 of file literal.hpp.

◆ LEXY_LITERAL_SET

#define LEXY_LITERAL_SET (   ...)
Value:
[] { \
using impl = decltype(::lexyd::literal_set(__VA_ARGS__)); \
struct s : impl \
{ \
using impl::operator/; \
}; \
return s{}; \
}()

Definition at line 608 of file literal.hpp.

lexyd::literal_set
constexpr auto literal_set(Literals...)
Matches one of the specified literals.
Definition: literal.hpp:594


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:18