sdpc ~master (2022-02-23T09:48:48.8355398)
Dub
Repo
digit
sdpc
parsers
Parse a sequences of digits, return an array of number
template
digit (
string
_digits
) {
public
import
std
.
string
:
indexOf
;
;
alias
digit
=
pmap
!(
ch
!
_digits
,
ch
=>
cast
(
int
)
_digits
.
indexOf
(
ch
))
;
}
Members
Aliases
digit
alias
digit
=
pmap
!(
ch
!
_digits
,
ch
=>
cast
(
int
)
_digits
.
indexOf
(
ch
))
Undocumented in source.
Imports
indexOf (from std.string)
public
import
std
.
string
:
indexOf
;
Undocumented in source.
Meta
Source
See Implementation
sdpc
parsers
aliases
whitespace
word
ws
functions
identifier
parse_escape1
parse_string
structs
Err
not_ch
templates
ch
digit
number
token
token_ws
variables
alphabet
digits
lower
upper
Parse a sequences of digits, return an array of number