#include <scan.hpp>
Classes | |
class | error_recovery_guard |
Public Types | |
using | encoding = typename Reader::encoding |
Public Member Functions | |
template<typename Rule , typename = std::enable_if_t<lexy::is_rule<Rule>>> | |
constexpr bool | branch (Rule rule) |
template<typename Production , typename T , typename = lexy::production_rule<Production>> | |
constexpr bool | branch (scan_result< T > &result, Production={}) |
template<typename T , typename Rule , typename = std::enable_if_t<lexy::is_rule<Rule>>> | |
constexpr bool | branch (scan_result< T > &result, Rule) |
template<typename Rule > | |
constexpr auto | capture (Rule rule) -> scan_result< lexeme< Reader >> |
template<typename Token > | |
constexpr auto | capture_token (Token) |
template<typename TokenRule > | |
constexpr bool | discard (TokenRule rule) |
template<typename Tag , typename... Args> | |
constexpr void | error (Tag, Args &&... args) |
constexpr auto | error_recovery () |
template<typename Tag , typename... Args> | |
constexpr void | fatal_error (Tag tag, Args &&... args) |
template<typename T , typename Base , typename Digits > | |
constexpr auto | integer (Digits digits) |
template<typename T , typename Digits > | |
constexpr auto | integer (Digits digits) |
constexpr bool | is_at_eof () const |
constexpr | operator bool () const noexcept |
constexpr scanner & | operator= (const scanner &) noexcept=delete |
template<typename Production , typename = lexy::production_rule<Production>> | |
constexpr auto | parse (Production={}) |
template<typename Rule , typename = std::enable_if_t<lexy::is_rule<Rule>>> | |
constexpr void | parse (Rule rule) |
template<typename T , typename Rule , typename = std::enable_if_t<lexy::is_rule<Rule>>> | |
constexpr auto | parse (Rule rule) |
template<typename T , typename Rule , typename = std::enable_if_t<lexy::is_rule<Rule>>> | |
constexpr void | parse (scan_result< T > &result, Rule) |
template<typename Rule > | |
constexpr bool | peek (Rule) |
constexpr auto | position () const noexcept -> typename Reader::iterator |
constexpr auto | remaining_input () const noexcept |
constexpr | scanner (const scanner &) noexcept=delete |
Protected Member Functions | |
constexpr Reader & | reader () noexcept |
constexpr | scanner (const Reader &reader) noexcept |
Private Types | |
enum | { _state_normal, _state_failed, _state_recovery } |
Private Attributes | |
Reader | _reader |
enum lexy::_detail::scanner:: { ... } | _state |
Definition at line 31 of file dsl/scan.hpp.
using lexy::_detail::scanner< Derived, Reader >::encoding = typename Reader::encoding |
Definition at line 167 of file dsl/scan.hpp.
|
private |
Enumerator | |
---|---|
_state_normal | |
_state_failed | |
_state_recovery |
Definition at line 399 of file dsl/scan.hpp.
|
constexprdeletenoexcept |
|
inlineexplicitconstexprprotectednoexcept |
Definition at line 387 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 257 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 251 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 229 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 365 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 379 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 303 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 320 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 296 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 327 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 350 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 357 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 178 of file dsl/scan.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 173 of file dsl/scan.hpp.
|
constexprdeletenoexcept |
|
inlineconstexpr |
Definition at line 208 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 221 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 335 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 195 of file dsl/scan.hpp.
|
inlineconstexpr |
Definition at line 343 of file dsl/scan.hpp.
|
inlineconstexprnoexcept |
Definition at line 183 of file dsl/scan.hpp.
|
inlineconstexprprotectednoexcept |
Definition at line 391 of file dsl/scan.hpp.
|
inlineconstexprnoexcept |
Definition at line 188 of file dsl/scan.hpp.
|
private |
Definition at line 397 of file dsl/scan.hpp.
enum { ... } lexy::_detail::scanner< Derived, Reader >::_state |