language-python icon indicating copy to clipboard operation
language-python copied to clipboard

A parser for Python 2.x and 3.x written in Haskell

Results 23 language-python issues
Sort by recently updated
recently updated
newest added

I am trying to compile a DSL into python, and I found using this easier than manipulating string or doc myself. However, it is still very cumbersome with all those...

I get the following errors when trying to build with Stackage snapshot 13.29 (GHC 8.6.5). I'm not familiar with Alex so am not sure where these identifiers should be defined....

Is it possible to document the target AST? Would help while contributing. Not sure on the format most folks would find useful -- personally, I'd be a fan of a...

I get this error compiling using GHC 8.2.2 ``` [12 of 23] Compiling Language.Python.Common.LexerUtils ( src/Language/Python/Common/LexerUtils.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.1/build/Language/Python/Common/LexerUtils.o ) /private/var/folders/1h/zmwb8fgs24l0djxm06mn_d600000gq/T/stack29031/language-python-0.5.4/src/Language/Python/Common/LexerUtils.hs:98:14: error: Ambiguous occurrence ‘take’ It could refer to either ‘Prelude.take’, imported...

``` haskell prettyText $ Py.Class (Py.Ident "Hello" ()) [] [] () ``` Should give: ``` python class Hello: pass ``` But currently the "pass" is missing.

When generating Python fragments, it would be nice to be able to use [quasiquotation](http://www.haskell.org/haskellwiki/Quasiquotation). The [language-c-quote](http://hackage.haskell.org/package/language-c-quote) is very nice to use for generating C, for example.

This PR fixes issue #77. NOTE: I would like to remove the redefine entirely but since I am not sure what it's initial purpose was I only disable it for...

I got the following error while trying to build the `language-python` package: ``` dist/build/Language/Python/Version3/Parser/Parser.hs:7562:4: error: [GHC-83865] • Couldn't match type ‘Happy_GHC_Exts.Int32#’ with ‘Happy_GHC_Exts.Int#’ Expected: Happy_Int Actual: Happy_GHC_Exts.Int32# • In the...

Seems to work with the new versions of those packages.

Updated the CI to recent GHC versions. Relaxed upper bounds of `containers` and `monads-tf` to work with the most recent GHCs.