Home

Awesome

SAWA

ꦱꦮ

sawa (ꦱꦮ) is an open source programming language, an interpreter to be precise, where you can write Python code using Javanese character.

sawa iku arané program iki sing ndadèkaké awakmu bisa kodhing Python nganggo aksara Jawa.

ꦥꦿꦶꦤ꧀("ꦱꦸꦒꦼꦁꦫꦮꦸꦃ")

Output:

ꦲꦸꦒꦼꦁꦫꦮꦸꦃ
ꦲ = ꧗
ꦪꦺꦤ꧀ ꧗ == ꧐:
    ꦥꦿꦶꦤ꧀("ꦲ ꦏꦺꦴꦱꦺꦴꦁ")
ꦲꦸꦠꦮꦭꦶꦪꦤꦺ ꦲ%2 == ꧐:
    ꦥꦿꦶꦤ꧀("ꦲ ꦒꦤꦼꦥ꧀")
ꦭꦶꦪꦤꦺ:
    ꦥꦿꦶꦤ꧀("ꦲ ꦒꦚ꧀ꦗꦶꦭ꧀")
    

Output:

ꦲ ꦒꦚ꧀ꦗꦶꦭ꧀
ꦥ꦳ꦸꦁꦱꦶ ꦠꦩ꧀ꦧꦃ(ꦲ,ꦧ):
    ꦕ = ꦲ + ꦧ
    ꦧꦭꦶꦏ꧀ ꦕ

ꦥꦿꦶꦤ꧀("ꦒꦸꦁꦒꦸꦁ = ", ꦠꦩ꧀ꦧꦃ(꧓,꧖))

Output:

ꦒꦸꦁꦒꦸꦁ = ꧙
ꦗꦸꦥꦸꦏ꧀ pandas ꦢꦢꦶ ꦥꦢ
ꦗꦸꦥꦸꦏ꧀ numpy ꦢꦢꦶ ꦤꦥ

ꦢꦉ = ꦥꦢ.read_csv('/location/of/csv/file.csv')

ꦢꦉ.head()

Prerequisites

NOTE: Windows is still untested. Please use pip version, and let me know if it's not working.

Getting Started

Installation

Build from scratch (for Mac OS and Linux)

PLEASE NOTE: You need root access for Linux operating system.

git clone https://github.com/lantip/sawa.git
cd sawa
./install.sh
make install

Uninstall

./uninstall.sh

Using pip (For all OS)

pip install sawa

NOTE: WINDOWS user Install this package on virtualenv.

C:>python -m venv C:\Users\<name>\venv

C:>C:\Users\<name>\venv\Scripts\activate.bat

(venv)C:>pip install sawa

and you're good to go.

Running

ꦥꦿꦶꦤ꧀("ꦱꦸꦒꦼꦁꦱꦶꦪꦁ")
ꦱꦮ ꦲꦭꦮ.ꦱꦮ
ꦱꦸꦒꦼꦁꦱꦶꦪꦁ

Contributing

You are most welcome to contribute for sawa. For guidelines see CONTRIBUTING.md

To get started take a fork of this repository and clone it.

Credits

This interpreter is build heavily based on YaLang skeleton. Thank you!