[Haskell-cafe] buildExpressionParser prefix recursion
Warren Harris
warrensomebody at gmail.com
Wed Dec 2 02:40:11 EST 2009
I was wondering why Parsec's buildExpressionParser doesn't allow
prefix expressions to be handled recursively, e.g. given a prefix "!"
operation, it seems that "!!a" could parse without requiring
parentheses ("!(!a)"). Is there an easy way to extend it? (I have a
rich expression grammar I'd like to parse which includes several
prefix forms, and it would be a shame to have to abandon
buildExpressionParser since it is so concise and convenient.) Thanks,
Warren
More information about the Haskell-Cafe
mailing list