A programming language that transpiles to python. It has extremely similar syntax, but instead of colons (:), you use arrows (=>). Along with this, you are also able to call functions with only one argument with special syntax.
Project description
ArrowPython
A programming language that transpiles to python. It has extremely similar syntax, but instead of colons (:
),
you use arrows (=>
). Along with this, you are also able to call functions with only one argument with the following syntax:
function:argument
This allows for statements such as this in ArrowPython:
print:"hello"
or:
str:1234
It allows you to call single-argument functions whilst shortening the time it takes to write them.
To use arrow python, first install it using:
pip3 install arrowpython
Then, to use it in your program, create a new python file and before putting in any code write:
import arrowpython
If you are using IDLE, IDLE can often be finicky over syntax errors, as it tries to find then before the code is run. This way you will often have a hard time executing ArrowPython in IDLE. I'd reccomend using something like Sublime Text or VSCode.
With that out of the way, this is an example of the popular FizzBuzz program in ArrowPython:
import arrowpython
def fizbuzz:num =>
for fizzbuzz in range:num =>
if fizzbuzz % 3 == 0 and fizzbuzz % 5 == 0 =>
print:"fizzbuzz"
continue
elif fizzbuzz % 3 == 0 =>
print:"fizz"
continue
elif fizzbuzz % 5 == 0 =>
print:"buzz"
continue
print:fizzbuzz
fizbuzz:51
Have fun coding!
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
Built Distribution
File details
Details for the file arrowpython-0.0.2.tar.gz
.
File metadata
- Download URL: arrowpython-0.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00129f0b853c627e8b29f51c8fb09617415c8f52ae103017970f05024c1cbfa0 |
|
MD5 | a4d3170e57a75a0eca14e23ca2ca8341 |
|
BLAKE2b-256 | eecace41026ee489e7c08b78a2434f7e7744e8d256344cc593dd777b62c5a438 |
File details
Details for the file arrowpython-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: arrowpython-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4cca0469ef3cb7bba7d36bf9b61f7c5efc5b1f695866b9e18aa9a7b592370a0 |
|
MD5 | 2bf5b35ecc3374a3e2461774d55478b6 |
|
BLAKE2b-256 | 9757209c7d88cc3bdf5c1c3e006fa0af3f2ca7ee4c762959b4127cb0f316363e |