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

Related tags

Miscellaneous sawa
Overview

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. Thankyou!

You might also like...
Ked interpreter built with Lex, Yacc and Python

Ked Ked is the first programming language known to hail from The People's Republic of Cork. It was first discovered and partially described by Adam Ly

Learning with Peter Norvig's lis.py interpreter

Learning with lis.py This repository contains variations of Peter Norvig's lis.py interpreter for a subset of Scheme, described in (How to Write a (Li

A subleq VM/interpreter created by me for no reason

What is Dumbleq? Dumbleq is a dumb Subleq VM/interpreter implementation created by me for absolutely no reason at all. What is Subleq? If you haven't

Compiler Final Project - Lisp Interpreter

Compiler Final Project - Lisp Interpreter

Eros is an expiremental programming language built using simple Python code.

Eros is an expiremental programming language built using simple Python code. Featuring an easy syntax and unique features like type slicing, the language remains an expirement that grows in down time.

Rick Astley Language is a rick roll oriented, dynamic, strong, esoteric programming language.
Rick Astley Language is a rick roll oriented, dynamic, strong, esoteric programming language.

Rick Roll Language / Rick Astley Language A rick roll oriented, dynamic, strong, esoteric programming language. Prolegomenon The reasons that I made t

PyGo custom language, New but similar language programming

New but similar language programming. Now we are capable to program in a very similar language to Python but at the same time get the efficiency of Go.

This is a vscode extension with a Virtual Assistant that you can play with when you are bored or you need help..

VS Code Virtual Assistant This is a vscode extension with a Virtual Assistant that you can play with when you are bored or you need help. Its currentl

The worst and slowest programming language you have ever seen

VenumLang this is a complete joke EXAMPLE: fizzbuzz in venumlang x = 0

Comments
  • sawa in windows

    sawa in windows

    mas, aq nyoba instal di windows pip instal sawa sukses tersimpan di Lib->site-packages->sawa tp pas mau cb sample 1 script print di command prompt function prin ndak dikenali trus nampaknya command prompt windows ga kenal aksara jawa,, krna pakai pycharm, jupyter notebook semua bisa mbaca aksara jawa..error nya hanya python ndak bisa baca fungsi..

    apa ada lokasi yg perlu diperbaiki biar python mbaca fungsi dr sawa.

    image

    sedangkan di pycharm kudu begini

    image

    kira2 knp ya?

    opened by cpamungkas 5
  • Ngabenerake ukara

    Ngabenerake ukara

    • ngganti elif => liyaneyen, supoyo gathuk karo if => yen, lan else => liyane
    • ngganti globals => jejagad, amargi globals luwih pas menawi diartike dadi jagad-jagad
    opened by fannisuyuti 2
  • Dandosi tetembungan

    Dandosi tetembungan

    • Mewahi dhiakritik
    • Usul nggantos sawatawis tembung:
      • Buka dados bukak
      • Daftar dados pratélan
      • Kamus dados bausastra
      • Nang (kalebet tembung pacelathon; cakapan/ragam takbaku. Conto sanèsipun: nèng) dados ing
      • Tulung dados pitulung

    Rujukan: Poerwadarminta, W.J.S (1939). Bausastra Jawa. Batavia: J.B. Wolters.

    Nuwun.

    opened by dikiaap 2
  • TODO: Perbaikan struktur Direktori

    TODO: Perbaikan struktur Direktori

    Rancangan struktur: . +-- bin/ | +-- cmd.sh +-- docs/ | +-- example/ +-- icons +-- sawa/ | +-- enum/

    Merujuk diskusi dengan mas @aprilahijriyan di bawah ini:

    @lantip untuk direktori package sendiri saya menyarankan untuk menggunakan package dari direktori sawa. kalau menggunakan dua direktori sekaligus, itu benar seperti menulis ulang kode. (sesuai apa yg anda bilang).

    Mungkin bisa mendapatkan refrensi struktur package dan penerapan clean code pada link dibawah ini:

    • https://python-poetry.org/ (Python Package Management Tool)
    • https://pre-commit.com/ (Tool untuk memformat/validasi sebelum push ke repo)
    • https://danielkummer.github.io/git-flow-cheatsheet/index.id_ID.html (untuk menyediakan operasi repositori tingkat tinggi untuk model percabangan)

    Originally posted by @aprilahijriyan in https://github.com/lantip/sawa/issues/6#issuecomment-860603472

    opened by lantip 1
Owner
Rony Lantip
Rony Lantip
The Official interpreter for the Pix programming language.

The official interpreter for the Pix programming language. Pix Pix is a programming language dedicated to readable syntax and usability Q) Is Pix the

Pix 6 Sep 25, 2022
You can easily send campaigns, e-marketing have actually account using cash will thank you for using our tools, and you can support our Vodafone Cash +201090788026

*** Welcome User Sorry I Mean Hello Brother ✓ Devolper and Design : Mokhtar Abdelkreem ========================================== You Can Follow Us O

Mo Code 1 Nov 3, 2021
An implementation of an interpreter for the Brainfuck esoteric language in Python

Brainfuck Interpreter in Python An implementation of an interpreter for the Brainfuck esoteric language in Python. ?? The Brainfuck Language Created i

Carlos Santos 0 Feb 1, 2022
Why write code when you can import it directly from GitHub Copilot?

Copilot Importer Why write code when you can import it directly from GitHub Copilot? What is Copilot Importer? The copilot python module will dynamica

Mythic 41 Jan 4, 2023
This is the Quiz that I made using Python Programming Language. This can only run in the Terminal

This is the Quiz that I made using Python Programming Language. This can only run in the Terminal

YOSHITHA RATHNAYAKE 1 Apr 8, 2022
One line Brainfuck interpreter in Python

One line Brainfuck interpreter in Python

null 16 Dec 21, 2022
Recreate the joys of Office Assistant from the comfort of the Python interpreter

Recreate the joys of Office Assistant from the comfort of the Python interpreter.

Louis Sven Goulet 3 May 21, 2022
A Brainfuck interpreter written in Python.

A Brainfuck interpreter written in Python.

Ethan Evans 1 Dec 5, 2021
Expression interpreter written in Python

Calc Interpreter An interpreter modeled after a calculator implemented in Python 3. The program currently only supports basic mathematical expressions

null 1 Oct 17, 2021