Giter Site home page Giter Site logo

robilaruku / sawa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lantip/sawa

0.0 0.0 0.0 440 KB

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

License: Other

Makefile 3.54% Shell 9.95% Python 86.51%

sawa's Introduction

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, 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

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!

sawa's People

Contributors

lantip avatar dikiaap avatar pecelpedas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.