[Haskell-cafe] uu-parsinglib - Greedy Parser

Peter Simons simons at cryp.to
Tue Jan 13 11:20:13 UTC 2015

Hi Marco,

 > I suppose that this may be done using <<|> to define a greedySome to be
 > used in in pContent, however I am wondering whether
 > there is another way to do this, without using such operator <<|>.

the 'micro' function attaches a cost a branch of the parse tree, and the
library generally prefers the branch with the lowest cost. Maybe this is
what you're looking for?

Best regards,

More information about the Haskell-Cafe mailing list