Description Usage Arguments Examples
Success if both parsers return success.
1 2 3 4 5 6 7 8 9 | p1 %then% p2
p1 %&% p2
p1 %join% p2
p1 %xthen% p2
p1 %thenx% p2
|
p1 |
A parser. |
p2 |
A parser. |
1 2 3 4 5 6 7 | p12 <- string("extract") %xthen% string("THIS")
p12("extractTHISpart") # success: list("THIS", "part"))
p12("BBCDE") # fail : list()
p12 <- string("keepthis") %thenx% string("IGNORE")
p12("keepthisIGNORE") # success: list("keepthis", ""))
p12("keepthisIGNOREcontinue") # success: list("keepthis", "continue"))
p12("BBCDE") # fail : list()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.