문제

How can I use Alex as the lexer, then feed the tokens into 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 would probably make a good combination.

도움이 되었습니까?

해결책

Yes, you can; see this answers by sinan to a related question, which also links to example code. Others have taken that road as well.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top