Git Product home page Git Product logo

tinypy's Introduction

Tinypy

This is a refactored version of tinypy.

The focus is on the core language, and production readiness features (testing, code abstraction).

The work is in-progress. Expect bugs.

See README.txt.old for a description of the original tinypy.

build

To build this version of tinypy, you will need a Python (2/3) to bootstrap the compiler.

make

To run the (incomplete) test suite:

make test

# stop on first failure
make xtest

# run full gc every step.
make test-dbg

run

To run a script:

./tpy tests/test_str.py

To see the disassembly:

./tpc -d tests/test_str.py

execution pipeline

Compiler: source code -> tokenize -> parse -> encode -> tpc

VM: tpc -> tpvm

A module can be imported only if it is already embedded.

'site' modules are in modules/ (may be broken as there are no test coverages).

Internal runtime modules (part of the language) written in tpy are in tinypy/runtime.

namespaces

tinypy.compiler: the compiler (compiler/)

tinypy.runtime: the runtime support (runtime/*.py)

tinypy.runtime.builtins: the runtime in C (tpy_builtins.c).

Of course things may still need to be shuffled around between these modules

tinypy's People

Contributors

rainwoodman avatar wiguwbe avatar jasondegraw avatar mxlgv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.