bjpop/berp
An implementation of Python 3
{ "createdAt": "2010-03-03T08:21:43Z", "defaultBranch": "master", "description": "An implementation of Python 3", "fullName": "bjpop/berp", "homepage": "", "language": "Haskell", "name": "berp", "pushedAt": "2016-01-29T22:39:41Z", "stargazersCount": 314, "topics": [], "updatedAt": "2025-06-10T14:05:14Z", "url": "https://github.com/bjpop/berp"}Berp, an implementation of Python 3
Section titled “Berp, an implementation of Python 3”License and Copyright
Section titled “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
Section titled “Contact information”Email Bernie Pope: florbitous <at> gmail <dot> com
Building and installing
Section titled “Building and installing”Berp uses the cabal infrastructure for configuring, building and installation.
To configure:
cabal configureTo build:
cabal buildTo install:
cabal installTo clean:
cabal cleanTesting
Section titled “Testing”Berp uses shelltestrunner for regression testing. Tests can be run like so:
make testShelltestrunner can be installed from Hackage:
cabal install shelltestrunnerDon’t worry if some tests fail.
Directory structure
Section titled “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