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.4.tar.gz
.
File metadata
- Download URL: arrowpython-0.0.4.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 | 4be0effa83912e428f27ed3527316f35e460834295c48f89d9f0a805bb9f1c4c |
|
MD5 | 665bbb5162d6ca63aa8415675de40e1c |
|
BLAKE2b-256 | 719e9173621a41874c017eb373a76daf32e7830d40894307eb087618cb869099 |
File details
Details for the file arrowpython-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: arrowpython-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.4 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 | 834eecb920da4be716cb442ad4a4b99c69301e3292cdf6f15cb6057793a87487 |
|
MD5 | 586740c548501bf8911f4a6cc61484f8 |
|
BLAKE2b-256 | c35425de5157464ca2227426f6b50126c13b4f0551cc934350a923e1d1a4046b |