[Haskell-cafe] Parsing, infixes and on-the-fly precedence

Stefan Monnier monnier at iro.umontreal.ca
Mon Sep 28 13:57:38 UTC 2015


> I know it is possible, because Haskell does it already! In Haskell we can
> define novel infix operators on the fly, including their precedence
> relative to each other.
> I don't know how, though, so that's my question.

You might like to look at
https://en.wikipedia.org/wiki/Operator-precedence_grammar


        Stefan



More information about the Haskell-Cafe mailing list