jcli ~master (2022-03-09T18:57:21Z)
Dub
Repo
CommandParsingContext
jcli
commandparser
parser
Undocumented in source.
struct
CommandParsingContext (
size_t
numBitsInStorage
) {
size_t
currentPositionalArgIndex
;
size_t
errorCounter
;
import
std
.
bitmanip
:
BitArray
;
;
static if
(
numBitsInStorage > 0
)
enum
bitStorageSize
;
static if
(
numBitsInStorage > 0
)
size_t
[
bitStorageSize
]
requiredNamedArgHasNotBeenFoundBitArrayStorage
;
static if
(
numBitsInStorage > 0
)
size_t
[
bitStorageSize
]
namedArgHasBeenFoundBitArrayStorage
;
static if
(
numBitsInStorage > 0
)
BitArray
requiredNamedArgHasNotBeenFoundBitArray
();
static if
(
numBitsInStorage > 0
)
BitArray
namedArgHasBeenFoundBitArray
();
static if
(!(
numBitsInStorage > 0
))
enum
size_t
bitStorageSize
;
}
Members
Functions
namedArgHasBeenFoundBitArray
BitArray
namedArgHasBeenFoundBitArray
()
Undocumented in source. Be warned that the author may not have intended to support it.
requiredNamedArgHasNotBeenFoundBitArray
BitArray
requiredNamedArgHasNotBeenFoundBitArray
()
Undocumented in source. Be warned that the author may not have intended to support it.
Manifest constants
bitStorageSize
enum
bitStorageSize
;
Undocumented in source.
Variables
bitStorageSize
enum
size_t
bitStorageSize
;
Undocumented in source.
currentPositionalArgIndex
size_t
currentPositionalArgIndex
;
Undocumented in source.
errorCounter
size_t
errorCounter
;
Undocumented in source.
namedArgHasBeenFoundBitArrayStorage
size_t
[
bitStorageSize
]
namedArgHasBeenFoundBitArrayStorage
;
Undocumented in source.
requiredNamedArgHasNotBeenFoundBitArrayStorage
size_t
[
bitStorageSize
]
requiredNamedArgHasNotBeenFoundBitArrayStorage
;
Undocumented in source.
Meta
Source
See Implementation
jcli
commandparser
parser
enums
CommandParsingErrorCode
ConsumeSingleArgumentResultKind
functions
consumeSingleArgumentIntoCommand
createErrorCodeHandler
createIgnoreSetErrorHandler
createInMemoryErrorHandler
maybeReportParseErrorsFromFinalContext
resetNamedArgumentArrayStorage
mixin templates
ParseBoilerplate
structs
CommandParsingContext
DefaultParseErrorHandler
ErrorCodeHandler
IgnoreSetErrorHandler
InMemoryErrorHandler
ParseResult
templates
parseCommand