Skip to content
/ sawa Public
forked from lantip/sawa

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

License

Notifications You must be signed in to change notification settings

yopzman/sawa

Repository files navigation

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.

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

Output:

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

Output:

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

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

Output:

ꦒꦸꦁꦒꦸꦁ = ꧙
  • Importing You may import Python package an rename it as Javanese name. For example:
ꦗꦸꦥꦸꦏ꧀ pandas ꦢꦢꦶ ꦥꦢ
ꦗꦸꦥꦸꦏ꧀ numpy ꦢꦢꦶ ꦤꦥ

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

ꦢꦉ.head()

Prerequisites

  • Mac OS or Linux
  • Python 3

Getting Started

Installation

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

  • Clone this repo:
git clone https://github.com/lantip/sawa.git
cd sawa
  • Run install.sh:
./install.sh
  • Or run Makefile:
make install

Uninstall

  • Run uninstall.sh
./uninstall.sh

Running

  • Create a new file with name ꦲꦭꦮ.ꦱꦮ and open in any editor.

  • Write this in the file

ꦥꦿꦶꦤ꧀("ꦱꦸꦒꦼꦁꦱꦶꦪꦁ")
  • Save it

  • Open a terminal and go to the folder where file is saved

  • Run this command

ꦱꦮ ꦲꦭꦮ.ꦱꦮ
  • It will print
ꦱꦸꦒꦼꦁꦱꦶꦪꦁ

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!

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.1%
  • Shell 14.7%
  • Makefile 5.2%