ctpg ~master (2022-05-29T03:06:24.0192733)
Dub
Repo
choiceWithFileLine.build
ctpg
combinators
choiceWithFileLine
Undocumented in source.
template
choiceWithFileLine
(string file, size_t line, parsers...)
template
build (
alias
kind
SrcType
) {
mixin
MAKE_RESULT
!
q{
getParseResultType
!(
parsers
[
0
].
build
!(
kind
,
SrcType
))
}
;
static if
(
parsers.length == 1
)
Result
parse
(Input!SrcType input, Caller caller);
mixin
MAKE_RESULT
!
q{
CommonType
!(
getParseResultType
!(
parsers
[
0
].
build
!(
kind
,
SrcType
)),
getParseResultType
!(
choice
!(
parsers
[
1
..$]).
build
!(
kind
,
SrcType
)))
}
;
static if
(!(
parsers.length == 1
))
static if
(
parsers.length > 1
)
Result
parse
(Input!SrcType input, Caller caller);
}
Members
Functions
parse
Result
parse
(Input!SrcType input, Caller caller)
Undocumented in source. Be warned that the author may not have intended to support it.
parse
Result
parse
(Input!SrcType input, Caller caller)
Undocumented in source. Be warned that the author may not have intended to support it.
Mixins
__anonymous
mixin
MAKE_RESULT
!
q{
getParseResultType
!(
parsers
[
0
].
build
!(
kind
,
SrcType
))
}
Undocumented in source.
__anonymous
mixin
MAKE_RESULT
!
q{
CommonType
!(
getParseResultType
!(
parsers
[
0
].
build
!(
kind
,
SrcType
)),
getParseResultType
!(
choice
!(
parsers
[
1
..$]).
build
!(
kind
,
SrcType
)))
}
Undocumented in source.
Meta
Source
See Implementation
ctpg
combinators
choiceWithFileLine
templates
build