
14 May
2007
14 May
'07
10:41 a.m.
On Mon, 14 May 2007, Malcolm Wallace wrote:
Essentially, you need to return a constructor as soon as you know that the initial portion of parsed data is correct. Often the only sensible way to do that is to use the 'apply' combinator (as shown in the examples above), returning a constructor _function_ which is lazily applied to the remainder of the parsing task.
Great, 'apply' is the solution! I admit that I couldn't derive its power from its documentation which simply states "Apply a parsed function to a parsed value." :-)