maybe: 'maybe' matches 0 or 1 of pattern 'p'. In EBNF notation,...

Description Usage Arguments See Also Examples

Description

maybe matches 0 or 1 of pattern p. In EBNF notation, this corresponds to a question mark ('?').

Usage

1
maybe(p)

Arguments

p

is the parser to be matched 0 or 1 times.

See Also

many, some

Examples

1
2
maybe(Digit())("123abc")
maybe(Digit())("abc123")

chappers/Ramble documentation built on May 13, 2019, 3:30 p.m.