tanakh / Peggy

The Parser Generator for Haskell
http://tanakh.github.com/Peggy
BSD 3-Clause "New" or "Revised" License
93 stars 19 forks source link

Allow semantically defined/custom predicates #5

Open flaviusb opened 12 years ago

flaviusb commented 12 years ago

Maybe there is already a better way to do this, but it would be useful to be able to be able to make a rule not match in the semantic expression; that is, to force a rule failure based on running some Haskell code.