Announce: language-python version 0.2 now available

I'm pleased to announce that version 0.2 of the language-python package is now available on hackage: http://hackage.haskell.org/package/language-python language-python provides lexical analysis and parsing for Python. Major features of this release: - Support for versions 2.x and 3.x of Python (previously only 3.x was supported). - Lexical tokens and AST nodes are annotated with accurate source span information. - Comments are retained as tokens, and are collected by the parser. Main shortcomings of this release: - Support for Unicode is limited (waiting on Unicode support in Alex). - It has only undergone minimal testing (testing infrastructure is still being built). I've also written a small client of the package, called language-python-colour, which renders Python source code as XHTML for colouring etc. The main purpose of this is to demonstrate how to use language-python, and the utility of accurate source spans. http://hackage.haskell.org/package/language-python-colour Example output: http://www.cs.mu.oz.au/~bjpop/code/lsystem.py.html Cheers, Bernie.

On Wed, Nov 4, 2009 at 7:03 AM, Bernie Pope
I'm pleased to announce that version 0.2 of the language-python package is now available on hackage:
http://hackage.haskell.org/package/language-python
language-python provides lexical analysis and parsing for Python.
Thanks for working on this; coming from a Python background (and still using Python at work), this sounds like a fun way to combine my efforts at learning Haskell with something that might actually prove useful for my day job (as I haven't been happy with any of the Python lint tools out there). :-)

2009/11/5 Tom Tobin
On Wed, Nov 4, 2009 at 7:03 AM, Bernie Pope
wrote: I'm pleased to announce that version 0.2 of the language-python package is now available on hackage:
http://hackage.haskell.org/package/language-python
language-python provides lexical analysis and parsing for Python.
Thanks for working on this; coming from a Python background (and still using Python at work), this sounds like a fun way to combine my efforts at learning Haskell with something that might actually prove useful for my day job (as I haven't been happy with any of the Python lint tools out there). :-)
I'm keen for people to write Python tools using language-python, so please let me know if you do, or if you have any good ideas.

2009/11/4 Bernie Pope
Main shortcomings of this release:
- Support for Unicode is limited (waiting on Unicode support in Alex).
There was an announcement a while back on this list from Jean-Philippe Bernardy about successfully adding Unicode support to Alex. http://www.mail-archive.com/haskell-cafe@haskell.org/msg62848.html -- Deniz Dogan

2009/11/5 Deniz Dogan
2009/11/4 Bernie Pope
: Main shortcomings of this release:
- Support for Unicode is limited (waiting on Unicode support in Alex).
There was an announcement a while back on this list from Jean-Philippe Bernardy about successfully adding Unicode support to Alex.
http://www.mail-archive.com/haskell-cafe@haskell.org/msg62848.html
Thanks Deniz, Yes, I saw that posting a while ago. I'm waiting for it to be included in the main branch of Alex (and looking forward to it too). Cheers, Bernie.
participants (3)
-
Bernie Pope
-
Deniz Dogan
-
Tom Tobin