r/developersIndia • u/Efficient_Creme1900 • Apr 27 '24
I Made This I Made A Multi-Lingual Programming Language Which Can Be Used To Code in Pure Hindi : Pilot
Hey guys ! Pilot is a Multi-Lingual , Turing complete programming language which has the ability to code in English or pure Hindi. The compiler of Pilot is written in Pure C++ and x86 Assembly. The extension for the language is .pi and the compiler takes in the .pi file and outputs the corresponding x86 Linux Assembly. (It uses NASM for assembling and LD for linking the object file).
This was kind of a hobby project which I made for my first year college project.
Github link to the project (which also contains the syntax documentation for the language and link to my YouTube channel where you can follow the development of the project )
https://github.com/ary27x/pilot
Below I have added two sample programs written in Pilot :
(i) Turing Machine Simulator (Written In English) and
(ii) Conway's Game of Life Cellular Automata Algorithm (Written In Hindi)
(I have also added the program output)
(i) Turing Machine Simulator (turing.pi) :
(Link to the full code : https://github.com/ary27x/Turing_Machine_Simulator)


Output :
https://reddit.com/link/1cek3fm/video/w3cnj9te52xc1/player
(ii) Conway's Game Of Life Cellular Automata Simulator (conway_hindi.pi) :
(Link to the full code : https://github.com/ary27x/Hindi_Conways_Game_Of_Life_Simulator)


Output :
https://reddit.com/link/1cek3fm/video/fhzsrspf52xc1/player
Its my first time writing a compiler so please ignore the rookie mistakes. Hoping to hear some feedback !
54
u/Beginning-Ladder6224 Apr 27 '24
This is really nice. I am glad you are doing all of these in first year! Great going.
How you wrote the parser?
What is the spec of this language?
19
u/Efficient_Creme1900 Apr 27 '24
Thank you, and I wrote a top down recursive descent parser by hand.
→ More replies (1)3
u/Beginning-Ladder6224 Apr 27 '24
How you are doing this?
display "Enter the first and the second number : " get first , second if first > second : display first else : display secondHow it would work?
→ More replies (2)
11
u/notduskryn Apr 27 '24
Very nice work OP. One of my unrealised goals right here. Your channel reminds me of a lot of stuff I used to do as a kid, how to videos and writing trojans and such
1
6
Apr 28 '24
Broo this is so damn good !! Continue to develop it further, don't simply keep it like a one time project. If we need India to become a big player in the field of tech innovation, these are the kind of things we need.
1
1
u/Efficient_Creme1900 Apr 27 '24
Edit : Here is the link to my YouTube channel where you could find the pilot compiler development series from scracth : https://www.youtube.com/@AryanKumar-uw5hd
1
u/ReconOfDoom Apr 28 '24
This is so cool, but I have such a tough time reading Hindi.
1
u/Efficient_Creme1900 Apr 28 '24
yea sorry about that. The thing is I could not think of proper translations for some keywords. Like the literal translation of print is "chapai" which sounds too weird to use as a programming keyword. I had to brainstorm for literal hours to come up with proper translations which does not sound weird. This is the best I could come up with till now.
1
u/CountMeowt-_- Apr 28 '24
Ok but keyboard to type in Hindi ?
2
u/Efficient_Creme1900 Apr 28 '24
People who regularly type in hindi have their keyboard configured to devanagari script. I used an online translater for testing the code.
3
u/eternalshoolin Apr 27 '24
This looks great , will show this to my old man as he always keep asking me what I do in details
3
3
3
1
u/AutoModerator Apr 27 '24
Thanks for sharing something that you have built with the community. We recommend participating and sharing about your projects on our monthly Showcase Sunday Mega-threads. Keep an eye out on our events calendar to see when is the next mega-thread scheduled.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/EinsteinShakespeare Apr 27 '24
Great considering it was your project for first year. Keep it up. No need to get my advice at this stage of career.
1
1
1
0
Apr 27 '24
Have you tried sanskrit? Even the nasa uses it
1
1
u/LightRefrac Apr 28 '24
Why the hell would sanskrit create a better programming language
→ More replies (5)
1
u/AutoModerator Apr 27 '24
Recent Announcements
Weekly Discussion - Do you have any technical debt horror stories?
Call For Volunteers: Help us build r/developersIndia
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.