parsec
parsec copied to clipboard
A monadic parser combinator library
After you create a parser then you have write syntax highlighting files to syntax highlight the language your parser parses. When doing changes to the parser you manually have to...
End of line parser that doesn't fail at the end of the file.
I tried to bump `parsec` submodule in GHC subtree to HEAD, but got ``` # /usr/bin/makeindex | Run Makeindex: Haddock.idx => /tmp/extra-dir-74820312079216 This is makeindex, version 2.15 [TeX Live 2019/dev]...
Relying on (user settable) `SourcePos` for deciding which parse is longer (in `mergeError`) is unreliable. FWIW `megaparsec` tracks the count. The #96 is different, as it adds character count to...
`charLiteral` and `stringLiteral` lexemes encloses literals, respectively, with characters `'` and `"` (both at the beginning and at the end of a literal) by default. There should be lexemes (one...
The document says > The getInput and setInput functions can for example be used to deal with #include files. But I can't find a good way to achieve it. Should...
The documentation for Stream mentions "unfoldM uncons gives the [t] corresponding to the stream", but unfoldM doesn't exist in base or parsec package. I assume the monadification of Data.List's unfoldr...
Weird error message coming from parsec... ```haskell #!/usr/bin/env stack -- stack runghc --package parsec import Data.Map (fromList) import Text.Parsec sepBy1Try p sep = do x