Skip to content

Burmese Programming Language Interpreter written in Ruby

License

Notifications You must be signed in to change notification settings

ye-lin-aung/blang

Repository files navigation

Blang (Burmese programming language)

This is a programming language backed by ruby. The project is just for my research to validate how much it is possible to write a programming lanague in burmese. I have no intention to make the language super performant or make it as a production ready language at the time. I may rewrite the language in C if the language got enough attention. Currently implementation should not be used at production at any costs.

Example

အခန်း NewClass
 a = "abc" 
 b = ၁ - ၂ + ၃ + ၄
 f = မှား
 အကို  = နတ္ထိ
 n = "data"
 ကြေညာချက် k()
    10
 ပြီး

 ပြ(f)
 ပြ(n)
 ပြ(အကို) 
 ပြ(b+k())
 ပြ("This is awesome item")

ပြီး

Syntax

Class

အခန်း BClass
    
ပြီး

Methods

ကြေညာချက် b_method()

ပြီး

Variable declaration

x = 8
y = "ဝိုင်"
မရှိ = နတ္ထိ
အမှား = မှား
အမှန် = မှန်

Operators

Infix operators in blang:

  • + :addition
  • - :subtraction
  • * :multiplication
  • / :division

TODO Need to display with table for better version

Nil (နတ္ထိ)

မရှိ = နတ္ထိ

Boolean

အမှားအမှန် = မှား || မှန်

အမှား = မှား
အမှန် = မှန်

Strings

ဥပမာ = "Blang သည် မြန်မာ ပရိုဂရမ်းမင်း ဘာသာစကား တစ်ခုဖြစ်သည်။"
ပြ(ဥပမာ)

Contributing

See the file CONTRIBUTING.md

License

MIT

About

Burmese Programming Language Interpreter written in Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published