Iros
Loading...
Searching...
No Matches
parser.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/meta/operations.h
"
4
#include "
di/meta/vocab.h
"
5
#include "
di/parser/concepts/parser_context.h
"
6
#include "
di/parser/parser_base.h
"
7
8
namespace
di::concepts
{
9
template
<
typename
T,
typename
Context>
10
concept
Parser
=
11
ParserContext<Context>
&&
DerivedFrom<T, parser::ParserBase<T>
> &&
requires
(T&
parser
, Context& context) {
12
{
parser
.parse(context) } ->
ExpectedError<typename Context::Error>
;
13
};
14
}
di::concepts::DerivedFrom
Definition
operations.h:114
di::concepts::ExpectedError
Definition
vocab.h:71
di::concepts::ParserContext
Definition
parser_context.h:12
di::concepts::Parser
Definition
parser.h:10
operations.h
di::concepts
Definition
any_storable.h:9
di::parser
Definition
zstring_parser.h:9
parser_base.h
parser_context.h
vocab.h
libs
di
include
di
parser
concepts
parser.h
Generated by
1.13.0