For questions about parsing text or data in Haskell.
Questions tagged [haskell-parsing]
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…

Přemysl Šťastný
- 1,676
- 2
- 18
- 39
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