Skip to content

ofabio/py2beam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

================================================================================
                               p  y  2  b  e  a  m
================================================================================

    Py2beam is a python compiler for the Erlang Virtual Machine BEAM.

================================================================================
    P  R  E  R  E  Q  U  I  S  I  T  E  S
================================================================================

    1. Python Virtual Machine [0].
    2. Erlang Virtual Machine [1].

================================================================================
    I  N  S  T  A  L  L  (Unix only)
================================================================================

    1. Unpack the source zip.
    2. `cd` into to the new directory
    3. Run `make` to build some erlang dependencies
    4. Run `sudo make install` to install py2beam in /usr/local/bin.

    Optional:
    5. Run `make test` to run tests.
    6. Use `examples` directory to test some pieces of code.

================================================================================
    U  S  E
================================================================================

    1. Run `py2beam.py` <pythonsourcefile>

    Optional:
    2. Run `py2beam.py -h` to show a quick help.
    3. To run an Erlang beam from the shell:
        3.1. `cd` into to the beam directory
        3.2. Use the command:
            `erl -pa ./ -run <beamname> module -run init stop -noshell`
            (<beamname> is the beam name without extension)

================================================================================
    U  N  I  N  S  T  A  L  L
================================================================================

    1. Run `sudo make distclean` to remove py2beam from /usr/local/bin.

================================================================================
    R  E  S  O  U  R  C  E  S
================================================================================

    [0] Official Website of the Python Programming Language:
        http://python.org/

    [1] Official Website of the Erlang Programming Language: 
        http://http://www.erlang.org/

    [2] Erlang Virtual Machine opcodes list.
        http://azunyanmoe.wordpress.com/2011/03/30/erlang-vm-opcodes/

    [3] PLY (Python Lex-Yacc) home page.
        http://www.dabeaz.com/ply/


================================================================================
    D  E  V  E  L  O  P  M  E  N  T
================================================================================

    An up to date git repository of the source can be found at the github
    code page:

        https://github.com/ofabio/py2beam/

================================================================================
    L  I  C  E  N  S  E
================================================================================

    Py2beam - Python compiler for the Erlang Virtual Machine BEAM, 
    Copyright (C) 2012-2013, Fabio Pricoco <fabio.pricoco@gmail.com>,
    Riccardo Massari <maxdrift85@gmail.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.


================================================================================

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published