概要
sawa (ꦱꦮ) is an open source programming language, an interpreter to be precise, where you can write python code using javanese character.
言語・ランタイム計測したスター増加
- 24時間
- +1
- 7日間
- +1
- 15日間
- +2
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル![]()
ꦱꦮ
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, Linux, Windows
- Python 3
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.
- 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
Using pip (For all OS)
- Run Pip install:
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
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!
関連プロジェクトを探す
読み込み中…