Description Usage Arguments Examples
Separated-by combinator
1 | sep_by(p, sep)
|
p |
A parser. |
sep |
A parser. |
1 2 3 4 5 6 7 | p14 <- sep_by(one_of(as.character(0:9)), literal(","))
p14("1,") # success: list("1", ","))
p14("1,2,") # success: list("12", ","))
p14("1,2,;") # success: list("12", ",;"))
p14("1,2,3,;") # success: list("123", ",;"))
p14("1;2,;") # success: list("1", ";2,;"))
p14(",1,2,3,;") # fail : list()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.