[Haskell-cafe] uu-parsinglib - Greedy Parser
simons at cryp.to
Tue Jan 13 11:20:13 UTC 2015
> 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?
More information about the Haskell-Cafe