powered by
A parser has completely consumed its input when the input has satisfied eof().
eof()
finished(o)
A logical value.
Output from a parser.
finished((literal("A") %then% eof())("A")) # TRUE finished((literal("A"))("A")) # FALSE finished((literal("A") %then% eof())(c("A","C"))) # FALSE
Run the code above in your browser using DataLab