a parser library for the Haskell programming language

learn more… | top users | synonyms

4
votes
2answers
71 views

Calculator with Significant Figures

I'm writing a small scientific programming language, and I thought my first step would be to write a calculator with built in significant figures. I wrote this with JParsec for the lexing and parsing. ...
5
votes
1answer
79 views

Using Parsec for simple arithmetic language

I've been reading Types and Programming Languages and I wanted to try to implement the first language in Haskell to understand it properly I have barely written any Haskell before and not used Parsec ...
1
vote
1answer
104 views

block comment parser implementation for “monadic parser combinators”

I'm reading monadic parser combinators. On the page 23, they leave an exercise for defining a Gofer block comment parser, and I try to implement it in Haskell. My code is here: ...
1
vote
0answers
47 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
337 views

Using Parsec for lexing&parsing

I'm creating list of Tokens from input [Char] stream using Parsec v3. The definition of ...
6
votes
1answer
1k 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
510 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 ...
7
votes
1answer
719 views

First attempt at a SVG parser

I figured it's about time to jump into some Haskell, so here's a first attempt at an oddly specific SVG parser: ...