Skip to main content

An implementation of Arrow (https://github.com/jacob-g/arrow-lang) in Python.

Project description

An implementation of Arrow in Python.

Running Arrow code

$ arrow --help

usage: arrow [-h] [file]

positional arguments:
  file        A file to run. Use - for stdin without prompt.

optional arguments:
  -h, --help  show this help message and exit

Example Arrow program

function
/--> int factorial(int n)
| require not (n < 0)
| int return
| /--< n != 0
| | return = 1
| \-->
| /--< n == 0
| | return = n * factorial(n - 1)
| \-->
^ return

main
int n
print "Enter number:"
n = input int
print "Factorial of", n, "is", factorial(n)

Which outputs:

Enter number:
5
Factorial of 5 is 120

Project details


Download files

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

Files for py-arrow-lang, version 2020.6.18
Filename, size File type Python version Upload date Hashes
Filename, size py_arrow_lang-2020.6.18-py3-none-any.whl (16.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size py-arrow-lang-2020.6.18.tar.gz (13.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page