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.

Source Distribution

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file py-arrow-lang-2020.6.18.tar.gz.

File metadata

  • Download URL: py-arrow-lang-2020.6.18.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.0

File hashes

Hashes for py-arrow-lang-2020.6.18.tar.gz
Algorithm Hash digest
SHA256 10120fa1dab4c9717b45a89b0e5ea8d4b608f89efb9fb9785a6368344f28cd6a
MD5 fdc867ae40c9c7839d55fe4ddc006a8f
BLAKE2b-256 78e584ddfb4c1d69f7cd9e36a301a3545383ae5b75e1244515edd3fb4cb8b088

See more details on using hashes here.

File details

Details for the file py_arrow_lang-2020.6.18-py3-none-any.whl.

File metadata

  • Download URL: py_arrow_lang-2020.6.18-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.0

File hashes

Hashes for py_arrow_lang-2020.6.18-py3-none-any.whl
Algorithm Hash digest
SHA256 d0034d01c70b2fe457fc80ec34954180230aa4e370c0a0a439f3a75fab4ddf9b
MD5 c9ee973625f1131557d9e847196848fc
BLAKE2b-256 90539f339dcdaf12ce8c0680439b09814f4fae74baa973e129540fd5c48340b9

See more details on using hashes here.

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