Skip to main content

Another little programming language

Project description

# The “fus” Python module

## Compiling

Just use the “py” compilation target of compile script:

# Should generate py/fus.so ./compile py

## Running

If all goes well with compilation, try:

PYTHONPATH=./py:$PYTHONPATH python

Now let’s run some fus from within Python:

from fus import run

# NOTE: The fus module maintains fus state (defs+stack+vars)

run(r‘“Hello!n”’ “ =’msg”) run(“‘msg str_p”) # Prints: Hello!

run(‘def add_and_print of(x y ->): + p’) run(‘1 2 +’) run(‘10 @add_and_print’) # Prints: 13

run(‘asd’) # Raises RuntimeError

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Fus-0.0.9.tar.gz (73.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page