attoparsec
A fast Haskell library for parsing ByteStrings (by haskell)
megaparsec
Industrial-strength monadic parser combinator library (by mrkkrp)
Our great sponsors
attoparsec | megaparsec | |
---|---|---|
6 | 3 | |
509 | 892 | |
0.6% | - | |
3.7 | 6.5 | |
7 days ago | about 1 month ago | |
Haskell | Haskell | |
BSD 3-clause "New" or "Revised" License | BSD 2-clause "Simplified" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
attoparsec
Posts with mentions or reviews of attoparsec.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-24.
-
Functional Implementation of a parser?
The basic idea is to create a state monad (usually using the State monad transformer) which contains a string to be parsed, and which also lifts other monad transformers like Except for throwing syntax errors. Or you can use a parser combinator like Parser provided by a parsing library like Megaparsec or Attoparsec that defines an efficient State+Except monad transformer combination for you.
-
Haskell - Important Libraries
attoparsec
-
On a daily base in this sub
good libraries for parsing: parsec, attoparsec etc.
- Parser Combinators in Haskell
-
Splitting html tags string into list of string
The more "idiomatic" way would be to use a parser library, e.g. parsec, attoparsec, or megaparsec. But even then I think it would be a lot easier to maintain if you could preserve the angle brackets <> in the input.
-
Ditch regex for parser combinators, a Rust / nom step-by-step guide
- https://hackage.haskell.org/package/attoparsec - https://hackage.haskell.org/package/megaparsec
megaparsec
Posts with mentions or reviews of megaparsec.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-23.
-
An apologia for lazy evaluation
Did you use megaparsec between August 2018 and August 2022? If so, you had a space leak. Granted, maybe it was small enough that it wasn't "an issue", but it just goes to show that it's so easy to introduce space leaks in Haskell that experts do it regularly.
-
is there an interpreter/compiler i can just put in a folder and use?
- Haskell's megaparsec library
-
Failing to parse Elixir with Megaparsec
Last year I spent some time trying to parse Elixir with Megaparsec.
What are some alternatives?
When comparing attoparsec and megaparsec you can also consider the following projects:
parsec - A monadic parser combinator library
attoparsec-parsec - An Attoparsec compatibility layer for Parsec
attoparsec-data - Parsers for the standard Haskell data types
trifecta - Parser combinators with highlighting, slicing, layout, literate comments, Clang-style diagnostics and the kitchen sink
parsers - Generic parser combinators
pipes-attoparsec - Utilities to convert a parser into a pipe
parser-combinators - Lightweight package providing commonly useful parser combinators
streaming-binary - Incremental serialization and deserialization of Haskell values.
makefile - Haskell Makefile parser
attoparsec vs parsec
megaparsec vs parsec
attoparsec vs attoparsec-parsec
megaparsec vs attoparsec-parsec
attoparsec vs attoparsec-data
megaparsec vs trifecta
attoparsec vs parsers
megaparsec vs pipes-attoparsec
attoparsec vs parser-combinators
megaparsec vs streaming-binary
attoparsec vs trifecta
megaparsec vs makefile