1
vote
0answers
33 views

TOML Parser with Parsec

i wanted to practice parsec and thought about doing a TOML parser for fun. i am looking for both directions on how to fix the remaining problems, but even more some hints on my style. the one ...
4
votes
1answer
209 views

Using Parsec for lexing&parsing

I'm creating list of Tokens from input [Char] stream using Parsec v3. The definition of Token looks like this: data Token = CharKeyword | OpeningBracket | Identifier String | Natural Int As result ...
5
votes
1answer
679 views

Parsing strings with escaped characters using Parsec

I have been working through the exercises in a Write Yourself a Scheme in 48 Hours/Parsing and hacked together something to get parseString to comprehend escaped characters. Also had some inspiration ...
4
votes
2answers
371 views

INI File Parser in Haskell

I'm learning Haskell at the moment, and have just written my first useful module - a parser fo INI files. I used Parsec. I'd like to know what can be improved here - or maybe I did some things ...
5
votes
1answer
557 views

Baby's First Parsec Attempt

I figured it's about time to get off my ass and jump into some Haskell. So here's a first attempt at an oddly specific SVG parser. import System.Environment import Text.ParserCombinators.Parsec ...