Skip to content

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

Notifications You must be signed in to change notification settings

sohamkorade/meme_lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published