3 ms·
Trifecta has poor documentation. I've been thinking about reading the Idris parser to learn trifecta/parsers.
by mrkgnao 9y ago
Trifecta has poor documentation. I've been thinking about reading the Idris parser to learn trifecta/parsers.
- axman6 9y agoTrifecta is best used via the parsers library, which is fairly well documented. This also (in theory) allows you to switch which parser you use between trifecta, parsec, attoparsec and even ReadP. I say in theory because the the semantics of these libraries differ.
- quchen 9y agoI recommend the much smaller project by Merijn, lambda-except [1]. I learned Trifecta from it, and it’s really not all that difficult, just embarassingly poorly documented. I then wrote the parser for my STGi project based on Trifecta, so that may also be worth a look. [1]: https://github.com/merijn/lambda-except https://github.com/merijn/lambda-except [2]: https://github.com/quchen/stgi/blob/master/src/Stg/Parser/Parser.hs https://github.com/quchen/stgi/blob/master/src/Stg/Parser/Pa...