• Stars
    star
    1,039
  • Rank 44,349 (Top 0.9 %)
  • Language
    Python
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Acche din aa gaye

ModiScript

Acche din aa gaye
Try the script in the ModiScript web UI

Vision

A Programming language is a wonderful medium of communication between man and machine. Many such languages are created, keeping in mind the comfort of the programmer. Such languages fulfill the computational needs of the world and serve their purpose. Somewhere in the midst of all this, the β€œfun” side of programming is lost.
Our project, β€œModi Script” is one such esoteric language created with the sole intention of making use of quotes by our beloved PM Narendra Modi. The star feature of this language is that the language consists entirely of remarkable statements made by the PM. The language is dynamically typed and turing complete, sprinkled with words of wisdom by our PM!

Features

This scripting language includes some "ideas" of Shri Narendra Modi.

  • No import of code is allowed, we have to support him in Make in India.
  • No comments are allowed in code, everything should be clean as per Swachh Bharat Abhiyaan.
  • No redundant variables allowed, 'less government more governance.'
  • Like his speeches, all codes should start with mitrooon
  • All codes should end with acche din aa gaye, otherwise it's congress rule error.
  • The programming language is totally case insensitive because we should not believe discrimination based on higher or lower castes/cases.
  • No floating point numbers allowed, you can either be right front or left front, there is no mid-way.
  • you can use the --help flag for very discreet help.

Installation

To install, download the repo using:

git clone https://github.com/VPanjeta/ModiScript

Then add ModiScript to your PATH as:

  1. Temporary: Write export PATH=$PATH:/path/to/ModiScript to terminal.
  2. Permanent: Append export PATH=$PATH:/path/to/ModiScript to the end of your ~/.bashrc file.
    And then type
source ~/.bashrc

Execution

Write code in file with extension .chai
For execution type MODI filename.chai

Syntax and Grammar

Arithmetic, relational and logical operators can be used in their raw form as defined in c/c++ (i.e. '+' for addition '-' for subtraction '&&' for logical and '||' for logical or and so on..)
Modi-fied operators

  • sach for True
  • jhoot for False
  • plus for addition
  • substract for subtraction
  • taimes for multiplication
  • break for division
  • modi for mod
  • kam for less than
  • zyada for greater than
  • barabar for equal to
  • aur for logical AND
  • ya for logical OR

Flow of Control

  • { } define a block as in any other programming language.
  • if is defined as agar and else as nahi toh. if else ladder can be defined as agar (condition) { } nahi toh agar (condition) { } nahi toh{ }.
  • Looping constructs can be defined using jab tak condition hai { } (be careful here, we have been going according to hindi grammar that dictates the loop will exit when the condition is true, thus the loop executes till the condition is false not true)

General Syntax

  • Any quote in double or single inverted commas is taken as a string constant. eg "Modiji ka seena 56 inch ka hai".
  • Assignments to a variable can be done using hai keyword, x = y can be depicted as x y hai, or congress scamster hai .
  • The use of the word "hai" is optional so the statement can be defined as BJP winner which translates to BJP = winner and hai can be appended to end of any line to make it more grammarly suitable to hindi.
  • Output to STDOUT can be given using bhaiyo aur behno. bhaiyo aur behno "Hum UP me sarkaar bana chuke hai." will print "Hum UP me sarkaar bana chuke hai."
  • Input from STDIN can be taken using mann ki baat. mann ki baat RSS will take input into a variable named RSS.
  • Any excessive words defined in a line outside the scope of any operators or syntax will be neglected so you can write pure hindi codes and make them grammatically correct and give a pure Hindi Code demo in UN Assembly.

Example Code

Mitrooon
agar baat sach hai
    bhaiyo aur behno "Modi sabse achhe pradhan mantri hai."
nahi toh
    bhaiyo aur behno "Rahul Gandhi ko PM banaiye"
Achhe din aa gaye

Output: "modi sabse achhe pradhan mantri hai."

Example codes can be found in /example.

Creators

Ideas and Contributions for alpha version implemented by

Web UI over flask service implemented by

  • Daksh Miglani @DakshMiglani

  • You are welcome if you feel the need to contribute. Just clone the repo and send a pull request!

More Repositories

1

Deep-Object-Removal

Using cGANs to remove objects from a photo
Python
106
star
2

hotdog-or-not-hotdog

Implementation of Hot Dog or not app from Silicon Valley (CNN to identify if the given picture is a hot dog or not)
Python
65
star
3

Meme-Classifier

Deep Learning model to predict the template of the given meme
Python
42
star
4

Image-Unfogging

PyTorch network to remove fog/smog/haze from pictures.
Python
19
star
5

Deep-Learning-Models

Deep Learning Models implemented in python.
Python
17
star
6

PyLLaMa-CPU

Fast LLaMa inference on CPU using llama.cpp for Python
C
8
star
7

Style-Transfer

A deep learning model using keras to transfer the style of a texture or a famous painter to a base image
Jupyter Notebook
6
star
8

whisper-websockets

Websockets implementation with OpenAI whisper for real time speech recognition
Python
4
star
9

Wikipedia-Game

The Wikipedia game of 'Clicks to Hitler'
Python
3
star
10

Banking-Project-cpp-Graphics

Bank management project using c++ graphics.h library. HDFC bank logo is copyrighted by HDFC Bank Ltd.
C++
2
star
11

Comic-Downloader

The script downloads all oatmeal comics from thoatmeal.com
Python
2
star
12

What-If

Answers to your arbitraty history shower thoughts about alternate history
Python
2
star
13

Audio-based-train-debugging

Debugging or analyzing neural network training by generating audio samples wrt model gradients
Python
2
star
14

Self-Driving-Car

A Program for the implementation of Udacity's nano degree on self driving cars
Python
1
star
15

Data-Analytics-Lab

Project for finding semantic similarity between 2 sentences using nltk wordnets
Jupyter Notebook
1
star
16

Django-Projects

This Project has 3 standalone Django projects that work separately.
Python
1
star
17

Batman-Curve

A simple timepass project based on batman equation
Python
1
star
18

Dynamic-Facial-Recognition

Dynamic facial and eye recognition using webcam input using Haar Cascade in OpenCV
Python
1
star
19

vpanjeta.github.io

visit https://vpanjeta.github.io
HTML
1
star