parsec
Parsec - error "combinator 'many' is applied to a parser that accepts an empty string"
I\'m trying to write a parser using Parsec that will parse literate Haskell files, such as the following:[详细]
2023-04-12 23:05 分类:问答Is there an haskell EDSL for writing lexers?
Mixing the lexer and parsing phases in one phase sometimes makes Parsec parsers less readable but also slows them down. One solution is to use Alex as a tokenizer and then Parsec as a parser of the to[详细]
2023-04-12 22:21 分类:问答Put two monadic values into a pair and return it
I am playing with Parsec and I want to combine two parsers into one with the result put in a pair, and then feed i开发者_C百科t another function to operate on the parse result to write something like[详细]
2023-04-08 17:33 分类:问答Adding readHex to a Parsec parser
I\'m going through Write Yourself a Scheme and am struck at the exercise 4 on this page. How do I go about this? I\'ve got this far, but have no idea whatsoever where the readHex is supposed to go, m[详细]
2023-03-31 09:24 分类:问答How to use Control.Monad.State with Parsec?
I\'m surprised that I could not find any info on this.I must be the only person having any trouble with it.[详细]
2023-03-24 01:26 分类:问答Get match length in parsec
P开发者_开发百科arsec\'s parse pattern \"(some_input)\" input returns the parsed data (as I specified in pattern.[详细]
2023-03-22 12:07 分类:问答How do you use parsec in a greedy fashion?
In my work I come across a lot of gnarly sql, and I had the bright idea of writing a program to parse the sql and print it out neatly.I made most of it pretty quickly, but I ran into a problem that I[详细]
2023-03-21 14:50 分类:问答Trivial parsec example produces a type error
I\'m trying to get this trivial parsec code to compile import Text.P开发者_Go百科arsec simple = letter[详细]
2023-03-20 17:04 分类:问答Haskell: FRP Reactive Parsec?
Is there (or is it possible to have开发者_运维问答) a reactive Parsec (or any other pure functional parser) in Haskell?[详细]
2023-03-20 09:41 分类:问答User state in Parsec
I\'m parsing an expression using Parsec and I want to keep track of variables开发者_运维百科 in these expressions using the user state in Parsec. Unfortunately I don\'t really get how to do it.[详细]
2023-03-15 03:57 分类:问答