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.17.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_arrow_lang-2020.6.17-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py-arrow-lang-2020.6.17.tar.gz
  • Upload date:
  • Size: 13.5 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.17.tar.gz
Algorithm Hash digest
SHA256 926c680517eaf09633dcc0ac301ee20d225a3238c02b1742440b7ca0a0abc7f9
MD5 6ec58de4857a2e43055c9566c52961c3
BLAKE2b-256 a90c9d25d8e82b465d1797ce56c1297a047e45cc366d59d5aa2e0c51d80e99c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_arrow_lang-2020.6.17-py3-none-any.whl
  • Upload date:
  • Size: 15.9 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.17-py3-none-any.whl
Algorithm Hash digest
SHA256 d8fb5f4f6a5be243688227015e7e28745201bb29d767195774d2b6c0426cb689
MD5 6b25e9a58678f950d87f27a4deec435e
BLAKE2b-256 3e04ed680184e49cbf7f4ee9f1d76650ba8d85785984bbf1d06b2ac696799fe2

See more details on using hashes here.

Supported by

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