expr update. authored by Ladislav Lhotka's avatar Ladislav Lhotka
...@@ -25,9 +25,9 @@ between 1 and 31. ...@@ -25,9 +25,9 @@ between 1 and 31.
if 1 <= num <= 31 then P.unit num else P.failure if 1 <= num <= 31 then P.unit num else P.failure
The parser for month reads one uppercase and two lowercase letters The parser for month reads one uppercase and two lowercase letters
(the default number of repetitions of the `repeat` combinator is 2).If (the default number of repetitions of the `repeat` combinator is
the result is found in the `months` array, it is returned, otherwise 2). If the result is found in the `months` array, it is returned,
the parser fails. otherwise the parser fails.
month = P.upper.bind (fst) -> month = P.upper.bind (fst) ->
P.lower.repeat().bind (rest) -> P.lower.repeat().bind (rest) ->
... ...
......