Git Product home page Git Product logo

meme_lang's Introduction

meme lang

Meme-lang is a programming language that compiles to javascript. It runs in browser.

How to use

You can use the online version.

Alternatively,

  1. Open index.html in browser.
  2. Write meme-lang code in the left code-editor.
  3. Click on the Run button to run the code.
  4. The output will be shown in the right textarea.

If in doubt, just type normal javascript code, the autocomplete will help you.

About

  • This was made as a fun project. It was inspired by bhai-lang. The idea of using Hindi instead of English is taken from that.

  • Meme-lang additionally show memes if your code has errors. e.g. Syntax error shows this famous meme "Kuch to gadbad hai Daya" from CID.

this

  • The memes are taken from a simple google search.

Features

  • Syntax highlighting
  • Code formatting
  • Autocomplete
  • Error reporting
  • Meme reporting
  • More syntax improvements

How it works

  • it replaces all the Hindi words with their corresponding javascript keywords
  • some common code parts are also given a hindi word e.g. i badhao compiles to i+=1
  • there are a few convenience functions:
    1. print - prints the argument to the output
    2. input - takes input from the user
    3. inputf - takes number input from the user
  • there is a global variable REPLY which stores the input given by the user; jo bhi is an alias for REPLY
  • usual javascript code can be intermixed with meme-lang code

Example

  • Hello world program in meme-lang
     bolo("Hello world")
  • A program to take input from the user and print it
     puchho("Enter your name")
     bolo("Hello ", jo bhi)

Credits

License

MIT

Author

Soham Korade

meme_lang's People

Contributors

sohamkorade avatar

Watchers

 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.