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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for py_arrow_lang-2020.6.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8fb5f4f6a5be243688227015e7e28745201bb29d767195774d2b6c0426cb689 |
|
MD5 | 6b25e9a58678f950d87f27a4deec435e |
|
BLAKE2b-256 | 3e04ed680184e49cbf7f4ee9f1d76650ba8d85785984bbf1d06b2ac696799fe2 |