I remember making my first programming language, it literally used words and grammatical signals for syntax 💀💀💀. Yes, it was hard making the language (it's called "English" btw) but it still worked. I already forgot about that language but whenever I showed it to some of my friends that know how to program, they always looked shocked that the syntax doesn't use any symbols. But Anyway, Cool language!!^^
At the university we also did something comparable in the compiler construction course. We had used a tool called JavaCC instead of Python. This is a parser generator that is pretty nimble. After that, you could use the programming language to compile and run programs for a register machine. The register machine itself was also implemented as a model and executed its own assembler instructions.
hey, i am working on a computer mod for minecraft and have been slowly building up a vm and compiler. If you need any tips just reply. One thing I will tell you though, do not write languages inside of interpreted languages; that is several layers of vm that you have to go through at that point. Unfortunately I had to write mine in java because of minecraft, but you could benefit from writing it in C or Rust or something similar.
@@lightcomic1i definitely recommend crystal! it's compiled + has a syntax highly inspired by ruby and of course ruby has a syntax highly inspired by python so it would be similar the only disadvantage is it's less dynamic and has some weird rules like ruby! Oh and it has the same performance as C and sometimes it's as fast as rust!
@@mgames3209 hey I could help you turn it into a compiler or something if you would like. Make it have linux and windows support, unfortunately compiling for MacOS is pretty hard.
man this makes me feel like im a dumb person, i have created so many failed programming languages that could be extended but i choose not to i just delete them
@@mgames3209 I chose the wrong programming languaje to make the interpreter + I don't know how to make a compilar + the wrong programming languaje that I chose (this is why I discarted it) wasn't able to read code. Now it is more advanced, and can read some things, but it's still not enough (i think)
@@JotaleaGGyou should first learn how to be good at reading code and the definitely start working on at least a mathmaic Interpreter (calculator) you can do that in any language! i do that when I want to learn a new language (my latest one is called Crystalic*Interpreter which i am still working on which will evolve to be a programming language Atomic-Script!) and it's hella fun
does it compile the code into simpler instructions and interpret them or does it directly interpret line to line? I feel like compiling it first makes it run faster.
Although I don't recommend using Python to make a language, here are two routes you can take: An interpreter - where you "tokenise" (parse the string into an object with all the key terms) like "say 'Hello' to stdout;" would be ["say", ["string","Hello"], "to", ["var", "stdout"]] and execute it by looping through the array (in a nutshell. Or a compiler - where you tokenise like what you would do with the interpreter but instead of executing it on the fly you create a machine code (or any other language) executable based on the tokenised code.
@@mgames3209 Same, i watched his tutorial but i didint understood a single thing. What the heck does a register even do? What was that generate_number_id function doing bruh. I didint understand a single thing
Hello, I made a quick tokenizer for my interpreted language, what is the next step ? How to handle nested blocks (like if { while {} for {}} , etc), do you know any ressource that I can read to continue ?
what the fuck, why would someone suffer to make a programming language in PYTHON (btw as someone who has coded in python but now codes in different languages, this seems like pain)
Hello MGgames I have taken notice to your programming language and would like to offer you an elementary programming internship online, the pay would approximate to about 12 cents per month as a starting wage but with effort on your part, has the potential to reach 13 cents. Reach out to me if you are interested in this opportunity!
Great language! Can i have the source code of this? I am trying to learn more about how other people do Interpreters because i am trying to improve mine's!
@@sunofabeach9424 if you enjoy going to different websites risking downloading the wrong thing to get any application on Windows, then so be it lol. Better hope you aren't downloading some malware!
little tip mate. you dont need to program your own langauge. There are loads of options like python (high-level, multi purpose) to more low-level langauges like C
To download: applemm321.itch.io/karop
You need to download python
python here: python.org
or use chocolqtey to download python, its a package manager for windows
I remember making my first programming language, it literally used words and grammatical signals for syntax 💀💀💀. Yes, it was hard making the language (it's called "English" btw) but it still worked. I already forgot about that language but whenever I showed it to some of my friends that know how to program, they always looked shocked that the syntax doesn't use any symbols. But Anyway, Cool language!!^^
Thx
you literally tried to create chatgpt
Bro made a language, literally
@@xirate7091 yea but his language still just giving specific instructions to machine but chatgpt is AI that processes text differently
Yo do you have it published anywhere?
At the university we also did something comparable in the compiler construction course. We had used a tool called JavaCC instead of Python. This is a parser generator that is pretty nimble. After that, you could use the programming language to compile and run programs for a register machine. The register machine itself was also implemented as a model and executed its own assembler instructions.
Nice
Should I make a tutorial?
The language is slightly slower then python (it’s around thousand lines but most of them just set up the program)
Yeh do a tuto
hey, i am working on a computer mod for minecraft and have been slowly building up a vm and compiler. If you need any tips just reply. One thing I will tell you though, do not write languages inside of interpreted languages; that is several layers of vm that you have to go through at that point. Unfortunately I had to write mine in java because of minecraft, but you could benefit from writing it in C or Rust or something similar.
@@lightcomic1 ok
@@lightcomic1i definitely recommend crystal! it's compiled + has a syntax highly inspired by ruby and of course ruby has a syntax highly inspired by python so it would be similar the only disadvantage is it's less dynamic and has some weird rules like ruby! Oh and it has the same performance as C and sometimes it's as fast as rust!
@@mgames3209 hey I could help you turn it into a compiler or something if you would like. Make it have linux and windows support, unfortunately compiling for MacOS is pretty hard.
I’ve now added classes!
Cool Language! You should create a tutorial on how you made it.
Thx
It's easy to build a programming language, lex, parse, and transpile, gdb-lex, gdb-parser, and gdb-debug.
he might have followed the tutorial from CodePulse, because i see the function "visit_BinNode" and that is also in the tutorial
@@manda3dprojects966u forgot about the AST😂
What's more impressive is your typing speed.
lol
python with brackets
yes
should be considered a war crime.
@@trex511ft
x = 3
if x > 2 {
print("no its not")
}
@@trex511ft i used python to make python with brackets...
@@mgames3209 you sir are crazy, I heard some dude used C to make C++, that's an even greater crime.
This is sick man. Could you share what theme you use please?
Ayu dark, you can get it from an extention in vocoder
thx bro:)
Please, can u do documentation?
I’ll make a video tutorial
@@mgames3209 okay! I will be very grateful
man this makes me feel like im a dumb person, i have created so many failed programming languages that could be extended but i choose not to i just delete them
How far did you get in them?
@@mgames3209 implementing data type likes string, booleans, integer, float, but im too lazy so rm -rf *
@@mgames3209 idk i forgor but i remeber it was in rust
@@mzakyr342 well this was in python so it’s probably a lot easier then rust
I like the scope = idea, means you can exchange scopes which would be interesting
Ok
Pro tip: Use another programming language
Not even python uses python for interpreting and parsing for a good reason
I always tried to do this. I just didn't get enough motivation.
What did you usually fail at?
@@mgames3209 I chose the wrong programming languaje to make the interpreter + I don't know how to make a compilar + the wrong programming languaje that I chose (this is why I discarted it) wasn't able to read code. Now it is more advanced, and can read some things, but it's still not enough (i think)
Ok@@JotaleaGG
@@JotaleaGGyou should first learn how to be good at reading code and the definitely start working on at least a mathmaic Interpreter (calculator) you can do that in any language! i do that when I want to learn a new language (my latest one is called Crystalic*Interpreter which i am still working on which will evolve to be a programming language Atomic-Script!) and it's hella fun
can you try making a recursive calls, like this fn fib(n): fib(n-1). How would you increase speed of calculation for functions?
If you make the function I’m pretty sure you can do it. For the speed however, I don’t really know
man i can barely make a square in python
Will run slower than anything literally because it uses Python lol
you should create a file format, so you input a file and you parse through each line
Ok
so like you can create the code in a file and not have to execute every line@@mgames3209
Super cool! 👌
I will suggest you to try some functional languages to do interpreters or compilers, they are great at it (great example is OCaml).
Ok
wow i love the syntax
I made it Like JS
now write it in C
Oh shoot.
Guys on accident I put wrong chat link, sry
Very good! But this like Haxe, VERY GOOD!
does it compile the code into simpler instructions and interpret them or does it directly interpret line to line? I feel like compiling it first makes it run faster.
Interpret, idk how to make a compiler
@@mgames3209spoiler: it's very hard to make one
@@mgames3209
def visit_stuff():
ops.append(something)
Smells like.. Lua
programming language in python is crazy like what libraries do you even use for that? are you just rewriting the syntax for python
I didnt use library’s for the base language, and no, I am not rewriting the python syntax
he just watched the most popular tutorial on how too make programming language in python: ruclips.net/p/PLZQftyCk7_SdoVexSmwy_tBgs7P0b97yD
seems like a lua x c type thing?
give this guy some file icons
can i erase bios in this language?
Isn't that just python with brakets instead of a : at the end of a condition?
Basically, but I made it for fun
thats really cool
Wow :O I'm interested! Say, how do you even make a language in Python?
Although I don't recommend using Python to make a language, here are two routes you can take:
An interpreter
- where you "tokenise" (parse the string into an object with all the key terms)
like "say 'Hello' to stdout;" would be ["say", ["string","Hello"], "to", ["var", "stdout"]] and execute it by
looping through the array (in a nutshell.
Or a compiler
- where you tokenise like what you would do with the interpreter but instead of executing it on the fly
you create a machine code (or any other language) executable based on the tokenised code.
name vs code theme?,
i tried this too, Failed because things like AST, Parsers are way too complex for me.
This was based on codepulses tutorial, but then I couldn’t do one thing so I remade it and added classes
But the code is way different from codepulses
@@mgames3209 Same, i watched his tutorial but i didint understood a single thing. What the heck does a register even do? What was that generate_number_id function doing bruh. I didint understand a single thing
@@mgames3209 Also i just subscribed. Good channel.
Creating a programming language is sorcery to me, congrats (i guess :D)
Thx
What do you call it ? Plus what are the major feats
Karoo, not really any, just made for fun
Hello, I made a quick tokenizer for my interpreted language, what is the next step ? How to handle nested blocks (like if { while {} for {}} , etc), do you know any ressource that I can read to continue ?
First, I recommend to start small, a simple math interpreter, it’s kinda hard to explain
@@mgames3209 Yes I did one by using posfix, infix and converting everithing into tree, but how to go from math interpreter to actual language
what the fuck, why would someone suffer to make a programming language in PYTHON
(btw as someone who has coded in python but now codes in different languages, this seems like pain)
Honestly the worst code in this video is windows itself
why are u typing so fast, chill bro
cool but it's probably not the best idea to make an interpreter using and interpreted language...
Ik
Please, say name of theme Vscode
Ayu dark, you can get it from an extension in vscode
ruclips.net/video/Vlu9Our1qeA/видео.html
CREDIT TO COLMANCOOL FOR PLAYING MY GAME
крутой
Did.. did you just write an interpreter in an interpreted language 💀
Yes
@@mgames3209 based
is bro a senior?
What theme is that?
ayu dark
Where can I download the interpreter for this?
I think it’s not that good since you have to have python to use it
And it has bugs
But I sent where to download
@@mgames3209 I can try to make documentation for it
@@mgames3209 I regret my words. This thing is so badly documented. I don't think there is a single goddamn comment
W bro.
Wow you're waaaaaaaaaaaayyyyyyyyyyyyyyyyyy ahead of me I wanna create superintelligent AIs when i grow up 🤖
Good luck!
are you typing manually or what cause you type really fast
its because I had to speed up the video
a programming language in python ong
thx
At least it’s barebones to not that slower then python
@@mgames3209 Are you sure it's not that much slower than python?
@@user-dh8oi2mk4f at least I think…
@@user-dh8oi2mk4f you can see yourself if , syou download it, cuz it’s as a .py
Just parse string and execute it via livary
I didnt use any library
@@mgames3209 show full code
Hello MGgames I have taken notice to your programming language and would like to offer you an elementary programming internship online, the pay would approximate to about 12 cents per month as a starting wage but with effort on your part, has the potential to reach 13 cents. Reach out to me if you are interested in this opportunity!
Bruh my friend sent me an internship lol
not bad but why py
Just cause
it's python
its not
Great language! Can i have the source code of this? I am trying to learn more about how other people do Interpreters because i am trying to improve mine's!
Thanks! You get the source code by downloading it
@@mgames3209 oh i didn't notice the download link in the first comment thanks
Your welcome@@Roxve
Using Python?
yes.
@@mgames3209 Shocking
lol windows
Ye I don’t use Linux
@@mgames3209 says who ever
lol drivers work and no package conflicts
@@sunofabeach9424 if you enjoy going to different websites risking downloading the wrong thing to get any application on Windows, then so be it lol. Better hope you aren't downloading some malware!
way too slow
It's not Cyrillic so fuck it
little tip mate. you dont need to program your own langauge. There are loads of options like python (high-level, multi purpose) to more low-level langauges like C
Ik, i just made it for fun
🤦🏻
too sloww
Ik, but at least it’s barebones so not too slow
python 👏👏