My programming language

Поділитися
Вставка
  • Опубліковано 26 тра 2023
  • Over the last month I made a programming language
  • Ігри

КОМЕНТАРІ • 157

  • @mgames3209
    @mgames3209  11 місяців тому +26

    To download: applemm321.itch.io/karop
    You need to download python
    python here: python.org

    • @cakelover4578washere
      @cakelover4578washere 8 місяців тому

      or use chocolqtey to download python, its a package manager for windows

  • @itzsummerofc
    @itzsummerofc 9 місяців тому +174

    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!!^^

    • @mgames3209
      @mgames3209  9 місяців тому +10

      Thx

    • @xirate7091
      @xirate7091 8 місяців тому +23

      you literally tried to create chatgpt

    • @Taokyle
      @Taokyle 8 місяців тому +26

      Bro made a language, literally

    • @justind4615
      @justind4615 8 місяців тому

      @@xirate7091 yea but his language still just giving specific instructions to machine but chatgpt is AI that processes text differently

    • @jextendecortex7577
      @jextendecortex7577 7 місяців тому +1

      Yo do you have it published anywhere?

  • @MrGuitarMix
    @MrGuitarMix 9 місяців тому +48

    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.

  • @mgames3209
    @mgames3209  11 місяців тому +13

    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)

    • @ilyesilyes6709
      @ilyesilyes6709 11 місяців тому +2

      Yeh do a tuto

    • @lightcomic1
      @lightcomic1 10 місяців тому +2

      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.

    • @mgames3209
      @mgames3209  10 місяців тому +1

      @@lightcomic1 ok

    • @Roxve
      @Roxve 9 місяців тому

      ​@@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!

    • @edy1219
      @edy1219 9 місяців тому

      @@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.

  • @mgames3209
    @mgames3209  Рік тому +4

    I’ve now added classes!

  • @Cosmotix
    @Cosmotix 11 місяців тому +3

    This is sick man. Could you share what theme you use please?

    • @mgames3209
      @mgames3209  11 місяців тому +3

      Ayu dark, you can get it from an extention in vocoder

    • @Cosmotix
      @Cosmotix 11 місяців тому

      thx bro:)

  • @BenPlaysSomething
    @BenPlaysSomething 11 місяців тому +16

    Cool Language! You should create a tutorial on how you made it.

    • @mgames3209
      @mgames3209  11 місяців тому

      Thx

    • @manda3dprojects966
      @manda3dprojects966 8 місяців тому +1

      It's easy to build a programming language, lex, parse, and transpile, gdb-lex, gdb-parser, and gdb-debug.

    • @SDFTDusername
      @SDFTDusername 3 місяці тому

      he might have followed the tutorial from CodePulse, because i see the function "visit_BinNode" and that is also in the tutorial

    • @King_sobb
      @King_sobb 3 місяці тому

      @@manda3dprojects966u forgot about the AST😂

  • @ragdude7323
    @ragdude7323 5 місяців тому

    I like the scope = idea, means you can exchange scopes which would be interesting

  • @iblack1615
    @iblack1615 11 місяців тому

    wow i love the syntax

  • @sbd2639
    @sbd2639 10 місяців тому +4

    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.

    • @mgames3209
      @mgames3209  10 місяців тому +5

      Interpret, idk how to make a compiler

    • @DrunkGeko
      @DrunkGeko 8 місяців тому

      ​@@mgames3209spoiler: it's very hard to make one

    • @angelcaru
      @angelcaru Місяць тому

      @@mgames3209
      def visit_stuff():
      ops.append(something)

  • @kyborq
    @kyborq День тому

    can you try making a recursive calls, like this fn fib(n): fib(n-1). How would you increase speed of calculation for functions?

    • @mgames3209
      @mgames3209  День тому

      If you make the function I’m pretty sure you can do it. For the speed however, I don’t really know

  • @jonhleylandkirby8081
    @jonhleylandkirby8081 Місяць тому

    can i erase bios in this language?

  • @programingisthefuture9185
    @programingisthefuture9185 8 місяців тому +2

    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).

  • @curlydev2
    @curlydev2 8 місяців тому

    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 ?

    • @mgames3209
      @mgames3209  8 місяців тому

      First, I recommend to start small, a simple math interpreter, it’s kinda hard to explain

    • @curlydev2
      @curlydev2 8 місяців тому

      @@mgames3209 Yes I did one by using posfix, infix and converting everithing into tree, but how to go from math interpreter to actual language

  • @themathforyou
    @themathforyou 9 місяців тому

    you should create a file format, so you input a file and you parse through each line

    • @mgames3209
      @mgames3209  9 місяців тому

      Ok

    • @themathforyou
      @themathforyou 9 місяців тому

      so like you can create the code in a file and not have to execute every line@@mgames3209

  • @rupaksaha9050
    @rupaksaha9050 10 місяців тому

    Wow :O I'm interested! Say, how do you even make a language in Python?

    • @AntiBabyPill
      @AntiBabyPill 9 місяців тому +1

      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.

  • @kxhu
    @kxhu 3 місяці тому

    seems like a lua x c type thing?

  • @macrro
    @macrro 10 місяців тому

    programming language in python is crazy like what libraries do you even use for that? are you just rewriting the syntax for python

    • @mgames3209
      @mgames3209  10 місяців тому

      I didnt use library’s for the base language, and no, I am not rewriting the python syntax

    • @DemidCode
      @DemidCode Місяць тому

      he just watched the most popular tutorial on how too make programming language in python: ua-cam.com/play/PLZQftyCk7_SdoVexSmwy_tBgs7P0b97yD.html

  • @dylanchambi8373
    @dylanchambi8373 29 днів тому

    What theme is that?

  • @DamianBossPL
    @DamianBossPL 9 місяців тому +3

    What's more impressive is your typing speed.

  • @c0dezin
    @c0dezin 7 місяців тому

    thats really cool

  • @inversionz8503
    @inversionz8503 9 місяців тому

    What do you call it ? Plus what are the major feats

    • @mgames3209
      @mgames3209  9 місяців тому

      Karoo, not really any, just made for fun

  • @ruria_coda
    @ruria_coda 8 місяців тому

    Very good! But this like Haxe, VERY GOOD!

  • @mgames3209
    @mgames3209  10 місяців тому +1

    Guys on accident I put wrong chat link, sry

  • @rav4464
    @rav4464 Місяць тому

    name vs code theme?,

  • @JotaleaGG
    @JotaleaGG 9 місяців тому

    I always tried to do this. I just didn't get enough motivation.

    • @mgames3209
      @mgames3209  9 місяців тому

      What did you usually fail at?

    • @JotaleaGG
      @JotaleaGG 9 місяців тому

      @@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)

    • @mgames3209
      @mgames3209  9 місяців тому

      Ok@@JotaleaGG

    • @Roxve
      @Roxve 9 місяців тому

      ​​​@@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

  • @meleeplaysgames
    @meleeplaysgames 8 місяців тому

    man i can barely make a square in python

  • @mzakyr342
    @mzakyr342 4 місяці тому

    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
      @mgames3209  4 місяці тому

      How far did you get in them?

    • @mzakyr342
      @mzakyr342 4 місяці тому

      @@mgames3209 implementing data type likes string, booleans, integer, float, but im too lazy so rm -rf *

    • @mzakyr342
      @mzakyr342 4 місяці тому

      @@mgames3209 idk i forgor but i remeber it was in rust

    • @mgames3209
      @mgames3209  4 місяці тому

      @@mzakyr342 well this was in python so it’s probably a lot easier then rust

  • @awru
    @awru 10 місяців тому +2

    Please, can u do documentation?

    • @mgames3209
      @mgames3209  10 місяців тому +1

      I’ll make a video tutorial

    • @awru
      @awru 10 місяців тому +1

      @@mgames3209 okay! I will be very grateful

  • @randomdude5634
    @randomdude5634 8 місяців тому

    give this guy some file icons

  • @shahzaibhassan6504
    @shahzaibhassan6504 11 місяців тому

    i tried this too, Failed because things like AST, Parsers are way too complex for me.

    • @mgames3209
      @mgames3209  11 місяців тому

      This was based on codepulses tutorial, but then I couldn’t do one thing so I remade it and added classes

    • @mgames3209
      @mgames3209  11 місяців тому

      But the code is way different from codepulses

    • @shahzaibhassan6504
      @shahzaibhassan6504 10 місяців тому

      @@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

    • @shahzaibhassan6504
      @shahzaibhassan6504 10 місяців тому

      @@mgames3209 Also i just subscribed. Good channel.

  • @sekki2554
    @sekki2554 8 місяців тому

    Isn't that just python with brakets instead of a : at the end of a condition?

    • @mgames3209
      @mgames3209  8 місяців тому

      Basically, but I made it for fun

  • @user-xb3ux9tz7i
    @user-xb3ux9tz7i 10 місяців тому

    W bro.

  • @FVT-tn8ji
    @FVT-tn8ji 8 місяців тому

    Creating a programming language is sorcery to me, congrats (i guess :D)

  • @travuchka
    @travuchka 7 місяців тому

    Please, say name of theme Vscode

    • @mgames3209
      @mgames3209  7 місяців тому

      Ayu dark, you can get it from an extension in vscode

  • @mgames3209
    @mgames3209  10 місяців тому

    ua-cam.com/video/Vlu9Our1qeA/v-deo.html
    CREDIT TO COLMANCOOL FOR PLAYING MY GAME

  • @gperm4941
    @gperm4941 11 місяців тому

    Where can I download the interpreter for this?

    • @mgames3209
      @mgames3209  11 місяців тому

      I think it’s not that good since you have to have python to use it

    • @mgames3209
      @mgames3209  11 місяців тому

      And it has bugs

    • @mgames3209
      @mgames3209  11 місяців тому

      But I sent where to download

    • @gperm4941
      @gperm4941 11 місяців тому

      @@mgames3209 I can try to make documentation for it

    • @gperm4941
      @gperm4941 11 місяців тому +1

      @@mgames3209 I regret my words. This thing is so badly documented. I don't think there is a single goddamn comment

  • @Roxve
    @Roxve 9 місяців тому

    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!

    • @mgames3209
      @mgames3209  9 місяців тому +1

      Thanks! You get the source code by downloading it

    • @Roxve
      @Roxve 9 місяців тому

      @@mgames3209 oh i didn't notice the download link in the first comment thanks

    • @mgames3209
      @mgames3209  9 місяців тому

      Your welcome@@Roxve

  • @X3NOGLADIAT0R850
    @X3NOGLADIAT0R850 9 місяців тому

    is bro a senior?

  • @catsdontboot8735
    @catsdontboot8735 10 місяців тому +4

    python with brackets

    • @mgames3209
      @mgames3209  10 місяців тому +1

      yes

    • @trex511ft
      @trex511ft 8 місяців тому +1

      should be considered a war crime.

    • @mgames3209
      @mgames3209  8 місяців тому +1

      @@trex511ft
      x = 3
      if x > 2 {
      print("no its not")
      }

    • @mgames3209
      @mgames3209  8 місяців тому

      @@trex511ft i used python to make python with brackets...

    • @trex511ft
      @trex511ft 8 місяців тому

      @@mgames3209 you sir are crazy, I heard some dude used C to make C++, that's an even greater crime.

  • @William_5956
    @William_5956 Місяць тому

    Smells like.. Lua

  • @bearfm
    @bearfm 11 місяців тому +5

    now write it in C

  • @beepboop9554
    @beepboop9554 8 місяців тому

    are you typing manually or what cause you type really fast

    • @mgames3209
      @mgames3209  8 місяців тому

      its because I had to speed up the video

  • @ARMARICH
    @ARMARICH Місяць тому

    крутой

  • @no_name4796
    @no_name4796 Місяць тому

    Honestly the worst code in this video is windows itself

  • @overbored1337
    @overbored1337 4 місяці тому

    Pro tip: Use another programming language
    Not even python uses python for interpreting and parsing for a good reason

  • @podemb.
    @podemb. 8 місяців тому

    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)

  • @xE92vD
    @xE92vD 3 місяці тому

    Will run slower than anything literally because it uses Python lol

  • @finmat95
    @finmat95 8 місяців тому

    Using Python?

  • @frommarkham424
    @frommarkham424 Місяць тому

    Wow you're waaaaaaaaaaaayyyyyyyyyyyyyyyyyy ahead of me I wanna create superintelligent AIs when i grow up 🤖

  • @dakata2416
    @dakata2416 8 місяців тому

    Did.. did you just write an interpreter in an interpreted language 💀

  • @djhiphouse9960
    @djhiphouse9960 9 місяців тому

    Just parse string and execute it via livary

  • @shiba-dev
    @shiba-dev 4 місяці тому

    why are u typing so fast, chill bro

  • @X7cF4
    @X7cF4 Місяць тому

    not bad but why py

  • @raghavsai4720
    @raghavsai4720 6 місяців тому

    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!

    • @mgames3209
      @mgames3209  6 місяців тому

      Bruh my friend sent me an internship lol

  • @whimbur
    @whimbur Місяць тому

    cool but it's probably not the best idea to make an interpreter using and interpreted language...

  • @aphztic
    @aphztic 11 місяців тому +2

    a programming language in python ong

    • @mgames3209
      @mgames3209  11 місяців тому

      thx

    • @mgames3209
      @mgames3209  11 місяців тому

      At least it’s barebones to not that slower then python

    • @user-dh8oi2mk4f
      @user-dh8oi2mk4f 11 місяців тому

      @@mgames3209 Are you sure it's not that much slower than python?

    • @mgames3209
      @mgames3209  11 місяців тому

      @@user-dh8oi2mk4f at least I think…

    • @mgames3209
      @mgames3209  11 місяців тому

      @@user-dh8oi2mk4f you can see yourself if , syou download it, cuz it’s as a .py

  • @sunofabeach9424
    @sunofabeach9424 7 місяців тому

    it's python

  • @hjoshua1701
    @hjoshua1701 7 місяців тому

    lol windows

    • @mgames3209
      @mgames3209  7 місяців тому

      Ye I don’t use Linux

    • @hjoshua1701
      @hjoshua1701 7 місяців тому

      @@mgames3209 says who ever

    • @sunofabeach9424
      @sunofabeach9424 7 місяців тому

      lol drivers work and no package conflicts

    • @hjoshua1701
      @hjoshua1701 7 місяців тому

      @@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!

  • @Caller8194
    @Caller8194 8 місяців тому

    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

    • @mgames3209
      @mgames3209  8 місяців тому +3

      Ik, i just made it for fun

    • @Stedera
      @Stedera 7 місяців тому

      🤦🏻

  • @terraform2883
    @terraform2883 Місяць тому

    It's not Cyrillic so fuck it

  • @AffectionateCanoe-vc4hj
    @AffectionateCanoe-vc4hj Місяць тому

    way too slow

  • @asmlearn
    @asmlearn 2 місяці тому

    python 👏👏