Skip to main content

An implementation of Arrow ( 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

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

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

Which outputs:

Enter number:
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.

Source Distribution

py-arrow-lang-2020.6.18.tar.gz (13.6 kB view hashes)

Uploaded Source

Built Distribution

py_arrow_lang-2020.6.18-py3-none-any.whl (16.0 kB view hashes)

Uploaded Python 3

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