Once p1 is matched, disable backtracking.
Once p1 is matched, disable backtracking. Does not consume p1 and yields the result of p2
Once p1 is matched, disable backtracking.
Once p1 is matched, disable backtracking. Consumes p1 and yields the result of p2
(Changed in version 2.9.0) The p0
call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.
A parser generator for a specified range of repetitions.
A parser generator for a specified range of repetitions.
repRange(min, max, p) uses p' from
min' upto max' times to parse the input
(the result is a
List' of the consecutive results of p')
a Parser' that is to be applied successively to the input
A parser that returns a list of results produced by repeatedly applying p' to the input
(and that only succeeds if
p' matches exactly n' times).
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
Parses a HAML/Scala based document. Original inspired by the ruby version at http://haml-lang.com/