Questions tagged [haskell-parsing]

For questions about parsing text or data in Haskell.

2 questions
3
votes
1 answer

How to correctly desugar syntactic tree? - reduction of data structure definition / constructor disabling

I am developing a new language in Haskell and I run into a problem with syntactic tree T desugaring. I have a set of functions f1, f2,... fn, which are simplifying the tree T from the "sugar". They are separated into different recursive functions so…
2
votes
1 answer

Using makeExprParser with ambiguity

I'm currently encountering a problem while translating a parser from a CFG-based tool (antlr) to Megaparsec. The grammar contains lists of expressions (handled with makeExprParser) that are enclosed in brackets (<, >) and separated by ,. Stuff like…
user1512263
  • 217
  • 1
  • 7