robrix / Madness

Recursive Descent Into Madness
MIT License
291 stars 14 forks source link

Add replace operator `<^` #92

Closed sharplet closed 9 years ago

sharplet commented 9 years ago

A combination of #91 and this article gave me the inspiration for this.

Should be a useful operator to have around when writing parsers in an applicative style.

robrix commented 9 years ago

:sparkles: Nice!

This deserves a write-up in the README, but we can tackle that in #91 to avoid conflicts :+1: