Skip to main content

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

arrowpython-0.0.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

arrowpython-0.0.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file arrowpython-0.0.3.tar.gz.

File metadata

  • Download URL: arrowpython-0.0.3.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

Hashes for arrowpython-0.0.3.tar.gz
Algorithm Hash digest
SHA256 13d1aa9c234dcf60b3f41b724f17285245ee88fb75e16e0b7a2ce75c20c0a5f2
MD5 f383f2b78ec526f72ac76b48305223d3
BLAKE2b-256 2f526d1550f5016e5266b747a5b4dbaba41c75de1f03be6397d6d3daee2cf4e4

See more details on using hashes here.

File details

Details for the file arrowpython-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: arrowpython-0.0.3-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

Hashes for arrowpython-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c0d1fd5135853b81b272a6b4d5b44144e8e233b43fe0ba3050a9b60763f8447c
MD5 c24da8a6369b5f0c4c6aa4567867a16a
BLAKE2b-256 d1aea09b67e3cb601a8501c255a9da8413793bf459f295ad09fb0fc4b24ad1a4

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