Haskell - Parsec parsing with Alex

How can I use Alex as a lexer and then submit tokens to Parsec for parsing?

Are there any examples?

I think Alex is better (and easier?) To use for lexical analysis than Parsec, but Parsec seems easier than Happy for parsing. They will probably make a good combination.

+4
source share
1 answer

Yes, you can; see this answers sinan to the corresponding question, which also refers to an example code , Others took this way .

+2
source

Source: https://habr.com/ru/post/1486276/


All Articles