Subject: Announce: language-python version 0.2 now available
Date: Wednesday 4th November 2009 13:03:32 UTC (over 7 years ago)
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.