About 2,300,000 results
Open links in new tab
  1. Parsec Connection Failure Error -10 and -11 - Stack Overflow

    Oct 19, 2021 · There might be several reasons for these two errors, however the Parsec docs does not give possible solutions. In my case going to App & Features > Optional Features > Add Feature and …

  2. Using Parsec to parse regular expressions - Stack Overflow

    Jan 26, 2012 · 13 You should use Parsec.Expr.buildExprParser; it is ideal for this purpose. You simply describe your operators, their precedence and associativity, and how to parse an atom, and the …

  3. Simply using parsec in python - Stack Overflow

    Aug 6, 2019 · The design of parsec requires a Parser to act independently on an input stream without knowledge of any other Parser. To do this effectively a Parser must manage an index position of the …

  4. Right way to parse chain of various binary functions with `Parsec`?

    Jun 10, 2019 · It is true that Parsec has chainl and chainr to parse chains of either left-associative or right-associative operations (i.e. a -> a -> a). So I could quite easily parse something like x + y ...

  5. Newest 'parsec' Questions - Stack Overflow

    Jun 4, 2024 · Parsec is an industrial strength, monadic parser combinator library for Haskell. Sign up to watch this tag and see more personalized content

  6. Parsec vs Yacc/Bison/Antlr: Why and when to use Parsec?

    Feb 21, 2011 · 44 I'm new to Haskell and Parsec. After reading Chapter 16 Using Parsec of Real World Haskell, a question appeared in my mind: Why and when is Parsec better than other parser …

  7. Parsec: difference between "try" and "lookAhead"?

    Nov 16, 2013 · The combinators try and lookAhead are similar in that they both let Parsec "rewind", but they apply in different circumstances. In particular, try rewinds failure while lookAhead rewinds success.

  8. parsing - Parsec `try` should backtrack - Stack Overflow

    Sep 5, 2022 · Isn't Parsec's try supposed to backtrack when it encounters failure? For instance, if I have the code import Control.Applicative ((<|>)) import Debug.Trace import Text.Parsec (try) import Text.

  9. ghc error: hidden package, but it's actually exposed

    Mar 1, 2014 · Could not load module ‘Text.Parsec’ It is a member of the hidden package ‘parsec-3.1.14.0’. You can run ‘:set -package parsec’ to expose it. However, the package is supposed to be …

  10. haskell - Using Parsec with Data.Text - Stack Overflow

    37 Using Parsec 3.1, it is possible to parse several types of inputs: [Char] with Text.Parsec.String Data.ByteString with Text.Parsec.ByteString Data.ByteString.Lazy with Text.Parsec.ByteString.Lazy …