parsec
How to retrieve value from optional parser in Parsec?
Sorry if it\'s a novice question - I want to parse something defined by Exp ::= Mandatory_Part Optional_Part0 Optional_Part1[详细]
2023-01-20 12:06 分类:问答Haskell Parsec and Unordered Properties
I am trying to use Parsec to parse something like this: property :: CharParser SomeObject property = do[详细]
2023-01-15 20:56 分类:问答Haskell: Lifting a reads function to a parsec parser
As part of the 4th exercise here I would like to use a reads type function such as readHex with a parsec Parser.[详细]
2023-01-12 21:36 分类:问答Parsing Indentation-based syntaxes in Haskell's Parsec
I\'m trying to parse an indentation-based language (think Python, Haskell itself, Boo, YAML) in Haskell using Parsec. I\'ve seen the IndentParser library, and it looks like it\'s the perfect match, bu[详细]
2023-01-03 16:24 分类:问答Haskell Parse Paragraph and em element with Parsec
I\'m using Text.ParserCombinators.Parsec and Text.XHtml to parse an input like this: this is the beginning of the paragraph --this is an emphasized text-- and this is the end\\n[详细]
2022-12-28 06:07 分类:问答Parsec Haskell Lists
I\'m using Text.ParserCombinators.Parsec and Text.XHtml to parse an input and get a HTML output. If my input is:[详细]
2022-12-27 20:41 分类:问答many1 no longer works with Parsec 3.x
After updating to Parsec 3.1 from 2.x, code using many1, such as word = many1 letter fails 开发者_如何转开发with[详细]
2022-12-25 06:32 分类:问答Can Haskell's Parsec library be used to implement a recursive descent parser with backup?
I\'ve been considering using Haskell\'s Parsec parsing library to parse a subset of Java as a recursive descent parser as an alternative to more traditional parser-generator solutions like Happy. Pars[详细]
2022-12-23 19:37 分类:问答With Parsec, how do I parse zero or more foo1 terminated by foo2 and all separated by dot?
What I am trying to do seems pretty simple, but since I am a parsec Haskell newb, the solution is eluding me.[详细]
2022-12-22 06:33 分类:问答Using Haskell's Parsec to parse a ByteString
I\'ve managed to use Parsec to parse a String, but cannot manage to do the same with a ByteString. How can I make Parsec work with ByteStrings without manually converting them to Strings?[详细]
2022-12-16 23:47 分类:问答