alex icon indicating copy to clipboard operation
alex copied to clipboard

A lexical analyser generator for Haskell

Results 41 alex issues
Sort by recently updated
recently updated
newest added

Some packages provide the generated files to ease installation. If a user wants to open these in an editor or run tooling over them, this presents challenges. e.g. http://hackage.haskell.org/package/Agda-2.4.2.2/docs/src/Agda-Syntax-Parser-Lexer.html#lexer Consider...

feature request
output formatting

As the documentation says, Alex works over a stream of UTF-8 encoded bytes, retrieved one at a time by `alexGetByte`. > Lexer specifications are written in terms of Unicode characters,...

re: unicode

I have updated https://haskell.org/alex (fixing #128), but I wonder whether we should simply make it a redirect to https://haskell-alex.readthedocs.io and maintain all information there? - [ ] @gbaz, can https://haskell.org/alex...

I want to extract the position information on lexing errors so I can send them to an LSP client, but the error type for the wrappers is hard coded to...

feature request
wrapper

Hey, this is kind of a specific quesiton, but I am building a lexer using alex, and the following thing happens: I'm using : ``` %wrapper "monadUserState" ``` And I'd...

bug
Template Haskell

I have been mulling this for a while, but the difficulties in fixing #197 made it feel more urgent. As a (rare) user of Adga, I have been very fond...

discussion

That could be a tiny bit faster than the current use of `shiftR`. Since `unsafeShiftR` has been in base since v4.5 / GHC-7.4, could it even be used unconditionally?! `alex`...

Cabal still doesn't support giving custom Alex options in configuration file (see issue: https://github.com/haskell/cabal/issues/1223), and some programs need to specify their own --template directory, or use predicates that are as...

feature request
options

Here last argument of `Lexeme` constructor is always `Just "\""`, but I guess it's supposed to be raw full representation of parsed string https://github.com/simonmar/alex/blob/a2a10a1a58a2a5066e69ecff205a27d5a1ed66c0/examples/tiger.x#L254

info needed
examples

https://github.com/simonmar/alex/blob/e4843f22818451299acd3620042b151ad2294ace/README.md#L51-L57 Nope: ``` $ cabal install Error: cabal: sdist of alex-3.2.7: filepath wildcard 'src/Parser.y.boot' does not match any files. ``` https://github.com/simonmar/alex/blob/e4843f22818451299acd3620042b151ad2294ace/README.md#L59-L66 Again, sorry, no (even with the correct tarball location):...

bug
build / install
documentation