Skip to content
Mr. Hashemi Programming Language https://mr-hashemi.github.io/mr-hashemi/
Java ANTLR Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
docs
language
launcher
native Map Hashmap reflication support for native-image Jan 2, 2020
test-report fix maven warnings Jan 1, 2020
.gitignore
LICENSE
README.md
generate_parser add gen parser script Jan 4, 2020
hashemi-logo.jpg Let's begin Dec 19, 2019
pom.xml

README.md

Mr. Hashemi Language

FOSSA Status Maintainability Rating Coverage

Other languages are just too difficult. Ask Mr. Hashemi to do the job right for you!

Hashemi's Familiy

Mr. Hashemi is a National programming language, a fork from SimpleLanguage. We hope Mr. Hashemi get enough attention to make bilions of tomans out of this project.

example:

bebin azinja() {
  i = 0;
  ta (i<1) bood {
    bechap("adad bede");
    n = adadBekhoon();
    derakht(n);
  }
}

bebin derakht(n){
  i = 0;
  matn = "";

  ta (i <n) bood {
    matn = matn + "*";
    i = i + 1;
    bechap(matn);
  }

  j = 0;
  ta (j<4) bood {
    bechap("*");
    j = j+1;
  }
}

Basic syntax:

Functions:

  • Declare a function by keyword bebin before function name.
  • Program starts from azinja function.
  • to call a function simply call it.
    in example above the functions azinja and derakht are defined and function derakht is called inside azinja.

Loops:

The usual while (condition) {code} loop is defined as ta (shart) bood {code} .

condition:

The usual if (condition) {code} conditions definition is defined as age (shart) bood {code} .

Variable declaration:

  • String :
    • matn = "ghoori ze ghalam, ghalam ze ghoori";
  • Number :
    • adad = 313;
  • Object :
    • chiz = jadid();
    • chiz.sefat1 = "hala ye chizi";
    • chiz.esm = "mammad";
    • chiz.sen = 33;

logical operators:

Basically like java you can find the list here .

License

FOSSA Status

You can’t perform that action at this time.