Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An implementation of Python 3
Haskell Python TeX
branch: master

Merge pull request #8 from CarstenKoenig/master

make a prettier readme
latest commit 3092528837
@bjpop authored
Failed to load latest commit information.
compiler Fixed makefiles
docs Added more notes about compiling variables
interpreter Fixed makefiles
libs Fixed makefiles
test test cases for import
.gitignore Added ignore file
LICENSE Cleaned up the interpreter. Changed the monad stack a little bit.
Makefile Fixed makefiles
README.md

README.md

Berp, an implementation of Python 3

License and Copyright

Berp is distributed as open source software under the terms of the BSD License (see the file LICENSE in the top directory).

Author: Bernie Pope, copyright 2009, 2010.

Contact information

Email Bernie Pope: florbitous <at> gmail <dot> com

Building and installing

Berp uses the cabal infrastructure for configuring, building and installation.

To configure:

cabal configure

To build:

cabal build

To install:

cabal install

To clean:

cabal clean

Testing

Berp uses shelltestrunner for regression testing. Tests can be run like so:

make test

Shelltestrunner can be installed from Hackage:

cabal install shelltestrunner

Don't worry if some tests fail.

Directory structure

---- src
     |
     |---- include                 # C header files
     |
     |---- Berp
           |
           |---- Base              # runtime primitives 
           |     |
           |     |---- Builtins    # implementation of Python's builtins
           |     |
           |     |---- StdTypes    # standard Python classes
           |
           |---- Compile           # translator from Python to Haskell
           |
           |---- Interpreter       # interface to the GHC API

---- test
     |
     |---- regression              # regression tests
           |
           |---- features          # tests for specific language features
           |
           |---- programs          # Python programs
Something went wrong with that request. Please try again.