language-python-test alternatives and similar packages
Based on the "Language" category.
Alternatively, view language-python-test alternatives based on common mentions on social networks and blogs.
-
purescript
A strongly-typed language that compiles to JavaScript -
elm-compiler
Compiler for Elm, a functional language for reliable webapps. -
stylish-haskell
Haskell code prettifier [Moved to: https://github.com/haskell/stylish-haskell] -
elm-reactor
Interactive development tool for Elm programs -
haskell-src-exts
Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer -
frp-arduino
Arduino programming without the hassle of C. -
haskell-tools-ast-gen
Developer tools for Haskell -
haskell-tools-ast-fromghc
Developer tools for Haskell -
language-python
A parser for Python 2.x and 3.x written in Haskell -
nirum
Nirum: IDL compiler and RPC/distributed object framework for microservices -
language-javascript
Parser for JavaScript, in Haskell -
liquid-fixpoint
Horn Clause Constraint Solving for Liquid Types -
elm-export
Create Elm types and JSON decoders from Haskell source. -
tal
An implementation of Typed Assembly Language (Morrisett, Walker, Crary, Glew) -
shentong
A Haskell implementation of the Shen programming language. -
camfort
Light-weight verification and transformation tools for Fortran -
type-of-html
High performance type safe html generation -
language-c-quote
C/CUDA/OpenCL/Objective-C quasiquoting library. -
fortran-src
Fortran parsing and static analysis infrastructure -
aterm-utils
Utility functions for working with aterms as generated by Minitermite -
language-rust
Parser and pretty-printer for the Rust language -
language-ecmascript
Haskell library: ECMAScript parser, pretty-printer and additional tools -
formura
Describe stencil formurae without even translating them -
homplexity
Haskell code complexity and quality measurement -
ministg
Ministg is an interpreter for a high-level, small-step, operational semantics for the STG machine. -
haskell-names
Haskell suite library for name resolution -
purescript-tsd-gen
TypeScript Declaration File (.d.ts) generator for PureScript
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of language-python-test or a related project?
README
Introduction
A test suite for the Haskell library language-python (a parser for Python 2 and 3).
License
language-python-test is released as open source software under the terms of the 3 clause BSD License. See the file LICENCE.txt in the source code repository of language-python-test.
This package also contains files from the CPython test suite. Those files are found in the sub-directories test/CPython_test_suite_v2 and test/CPython_test_suite_v3. The license for those files is contained in those directories.
Installation
Install into a cabal sandbox:
git clone https://github.com/bjpop/language-python-test/
cd language-python-test
cabal sandbox init
cabal install language-python-test
# perhaps copy the executables from language_python_test/.cabal-sandbox/bin to ~/.cabal/bin/
# and run cabal sandbox delete to remove the sandbox files
Usage
The package builds the following executable programs:
- language-python-parse-pretty
- language-python-roundtrip
- language-python-tokens
The first program parses a Python file as input and pretty prints it back again.
The second program performs a round-trip of parse, pretty print, parse and pretty print. It checks that the first pretty print is equal to the second pretty print. This is not a perfect test for correctness, but it does check that the parser and pretty printer agree to some extent, and is usually quite good at finding errors.
The third program performs lexical analysis on the input Python file and pretty prints the resulting token stream.
The test suite (which tests the behaviour of language-python) uses the shelltest tool. To run the tests you need to have shelltest installed:
cabal install shelltestrunner
The tests are found in the sub-directory called tests.
You can run the tests like so from the top directory of the language-python-test package:
shelltest --color --execdir test/ -- -j1
If you have installed into a cabal sandbox, then you might need to adjust your path:
PATH=.cabal-sandbox/bin/:$PATH shelltest --color --execdir test/ -- -j1
We provide a Makefile for convenience which does the same thing. You can run it like so:
make test
or, with PATH adjustment:
PATH=.cabal-sandbox/bin/:$PATH make test
*Note that all licence references and agreements mentioned in the language-python-test README section above
are relevant to that project's source code only.