Giter Site home page Giter Site logo

fossabot / mr-hashemi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mr-hashemi/mr-hashemi

0.0 0.0 0.0 1.67 MB

Mr. Hashemi Programming Language https://mr-hashemi.github.io/mr-hashemi/

License: MIT License

Java 97.39% ANTLR 2.43% Shell 0.13% Batchfile 0.05%

mr-hashemi's Introduction

Mr. Hashemi Language

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

alt text FOSSA Status

Mr. Hashemi is a National programming language. 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 main function.
  • to call a function simply call it.
    in example above the functions main and derakht are defined and function derakht is called inside main.

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

mr-hashemi's People

Contributors

fossabot avatar miladkh7 avatar niima avatar s-soroosh avatar tohidheshmati 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.