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")

Ramble documentation built on May 1, 2019, 7:17 p.m.