@@universenerdd YOU are dumb, Pluscrafter NEVER said Python was compiled and at least Pluscrafter knows the difference between their, they're and there
@@e.6z1 okay, so what i meant was interpreters are not compilers, if you look at the original comment it makes sence, and i do know the difference, if that was what you were implying
Me: *blinks* Him: Now we are done let’s code the entire f-ing universe edit: dang this was a year ago when I didn't know how to code and now I feel bad for commenting this. Amazing video
It took RUclips 2 years to recommend this amazing tutorial.... Really well done mate! It's inspired me enough to dabble on my own version. Not sure about an entire language but could be really useful for making CLIs.
Dude, thanks. You don't know me, but I am a solo game designer with a solid "B" in art skills, but a "C-" in programming. I have been trying to implement a basic like script interpreter in a python program I am making. Been trying for several years to get it right. This tutorial is EXACTLY what I needed. Thanks again.
Thanks! I do plan on doing that soon. The later episodes in this series have gotten more messy and complicated, and I'm planning on redoing this series first. I also am doing a simpler 4 part series on making a math interpreter before that. So hopefully I get around to doing a compiler soon :)
Funnily enough, when you are able to do that, you can call your language Turing-complete (it can recreate itself, in itself), and is mostly a good-enough programming language for most basic tasks.
@@0x1EGEN Your original reply: "You mean "self-hosting", turing complete just means it can theoretically compute anything. en.wikipedia.org/wiki/Self-hosting_(compilers)" An answer: no. A self-hosting compiler can compile itself, yes, but a language can be interpreted, and you could still make another language with it. Being Turing-complete means that it can simulate a Turing-machine. Taken from Wikipedia: "For example, an imperative language is Turing-complete if it has conditional branching (e.g., "if" and "goto" statements, or a "branch if zero" instruction; see one-instruction set computer) and the ability to change an arbitrary amount of memory (e.g., the ability to maintain an arbitrary number of data items)." That means, that as long as you have if statements and some way to loop (be it goto statements or a for loop), your language is turning complete.
This is great. Been working my way through Nand 2 Tetris on my own. I made it through the hardware portion all right but once it got to writing the assembler I felt completely lost. Hoping this will give me the nudge I need, so far I'm loving the content and can't wait to finish.
oh your lexer is so nice . it actually handles problems. my lexer just advances over them . so once/if mine ever becomes a compiler instead of a interpreter. literally everything will compile but whether or not it will run is another story entirely.
I’m always so envious of seeing young people with that drive. When I was 15 all I cared about was playing videogames and being cool, such useless things
I've got like 3 yrs of experience in C#, but only like 3 months in Python. Probably not this I should do with only 3 months of exp. but I strongly believe that my C# skills will help. Amazing tutorial ngl
Really thx for this Toutorial! This was my first Toutorial that I used for Python ( If I don’t mention the Python Code in my Java File and 8 Videos of Python but I didn’t test them...) So I learned here not just how to make a programming language, I learned even Python with this Toutorial! Really thx for it!
I thought that the output of "1.2+1" would be "float: 1.2 | plus | int: 1", however I've noticed that it skips the plus sign entirely. It does that for every first character behind a number. I checked my code (I translated your code into lua and thought I messed something up) and then was suprised to see that indeed, it skips the first character that comes after any number in the make_number function. There is an easy fix to it tho! After the loop in the make_number function you need to decrement the self.pos by 1. (self.pos -= 1) After doing that it now correctfully translate the input "1.2+1" to "float: 1.2 | plus | int:1" instead of the output given above. I do not know if the same issue has happened to anyone else before, but if it did it would be nice if you could pin this message, it was not as easy to track down as it might sound from above. Nice video nontheless! It helped me out a lot!
Are you sure you didn't call self.advance() in the while loop of make_tokens() as well, after tokens.append(self.make_number())? That would result in calling self.advance() twice, which creates the issue you ran into. I have the code in the video and I was not able to reproduce your issue at all.
The error output looks so neat! Copilot suggested me how to get output like this: calc> 12+23.3+g Illegal Character: g File , line 1 12+23.3+g ^ Error representation should be: result = f'{self.name}: {self.details}' result += f' File {self.pos_start.filename}, line {self.pos_start.ln + 1}' line = self.pos_start.filetext[:self.pos_start.col+1] result += f' {line}' result += ' ' + ' ' * (self.pos_start.col) + '^' return result
I think I got something wrong. I followed the tutorial, but what happens when I do 1 + 1 is strange. basic > 1 + 1 [, , ] NEVERMIND I forgot to put __ after __repr
Awesome, I know have a fully working lexer and I am working on a programming language known as jublee. Which already has the basic features of addition , sub , mul and div.
Im creating a language called Neptune, 'cuz it is my favorite planet. I want to make it the most easy to understand programming language using a lot of simple keywords
7:11 really really important flaw: the while loop will keep appending same char to the string indefinitely once it starts. there's nothing to advance it. ok you caught this at 10:31, this took me a couple watches to see if you put that somewhere in the video
CodePulse yeah man! You write some super clean code! I’m trying to make my own language just for fun and wow this has help a lot. It’s really really fun to! Keep it up man!!
Good tutorial! I tried this once before when I was still pretty new at python and I didn't understand it so I gave up after the first two vids. But, now that I'm more familiar with the syntax of python, I can actually understand everything in this tutorial.
Sorry CodePulse, I have some questions.. :) 1. Python is a language that is a bit slow compared to other lnguages. So can another language created using python be faster than Python ? 2. Does this tutorial series include everything in BASIC Language ? 3. What are the basics of the Programmig Language ? Many thanks to the tutorials you created ^)
1. A language created in Python can be faster if (a) it is compiled to machine code, or (b) it is compiled to byte-code to be interpreted by some other application such as JVM (Java virtual machine), or WASM (WebAssembly to allow it to run on the web). 2. No, as the series progresses the language differs more from the basic language. 3. I'm not sure what you are asking here. Your welcome :)
To speed things up you might want to set self.length to len(text) in __init__, else you change the complexity of advance to O(n) where n is the length of the text.
how did you get it so that when you click new terminal it says just terminal> and not the path to the folder you are working in? Also I copied everything from github and type in the terminal 'python3 shell.py' nothing happens! Edit: I have the Python extention for VScode in version 2018.3.0
On windows you can use the "prompt" command to change what text shows up. If you are using windows 10, it preinstalls a python3 program, but this isn't the real python, rather a link to the microsoft store to install python. This could be why nothing happens. Try just run "python" instead of "python3", otherwise you may have to update your path.
Thanks. My aim for this series is to improve on HowCode's tutorials, as his original series didn't use proper techniques, and he rushed his newer series in my opinion. I also plan on making the series much longer and add a lot more features that are missing from HowCode's tutorials (for example functions with arguments).
@Najmul hossain As in the minimax algorithm in game theory? It's not really the type of thing that I had planned for the channel, and there seems to be plenty of explanations out there already. But if enough people wanted it, I would definitely consider it.
seems difficult but i want to get into it ;) for the first time watching i just rewrite your code. When you began to improve Error class my brains just broke. I think i will watch this vid till I understand it enough good. At all, good tutorials, one of the best ive found. Unfortunately, in Russian programming segment there is no tutors how to create your own compiler/interpreter. But it seems like i found an amazing one in English sorry for broken English
Thank's for your comment! Your English is not bad. I think I overcomplicated this series, and I intend to simply things in my future tutorials :) Good luck!
i get the error 'import nide' (nide is my language) at the start of the shell file.... no idea why. I even checked the github and it all was the same, im using python 3.9 can anyone help please! edit: i also tried renaming everything to what he used and same result
a year ago i wanted to create a programming language but i don't even know what is class in python,but now i can code in rust,understanding OOP and little bit of data structure and algorithm
great video . I wanted to ask : 1. Should keywords like *if* , *for* , *function* are implemented at this stage , I mean in the lexer? 2.Do we also implement a comment elimination strategy , like we do with spaces , in this phase?
I dont really understand why you used a while loop for the lexer. A for-loop would have made it much easier, because you wouldnt need the advance()-function, cleaning up the code. Additionally it would have made the code execution much faster, which is an important factor if you write an intepreted language inside of an intepreted language
I personally would've used enums for the token system, I'll just try to follow along with those, hope it isn't too much of a struggle (I'm using C++, and yes I know python doesn't have them builtin but there is a builtin lib for that)
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. Even though i already installed python3 and the extension
The code does not work, whenever I run it, I enter the expression into the prompt and then the prompt keeps staying the same, like if you hit enter, nothing happens, all the cursor does is go down one line
i can just imagine teachers using this language in math class, okay students, find the answer to 435*1654, i can't figure it out, USE YOU'RE BASIC TO FIGURE IT OUT
When I put a space in between my numbers it errors how do I fix that, I looked back through the video and couldnt find anything I did wrong so please help.
if i knew how to make a programming language, I would call it OceanCode and code for making text with another font like hello world is anyways my favorite font is indeed consolas
Imagine running an interpreted language over an Interpreted language.
Haha yes
Many compilers do that. I think it's called bootstraping and there is a python interpreter that is programmed in python (pypy).
@@CodePulse Lol
@@universenerdd YOU are dumb, Pluscrafter NEVER said Python was compiled and at least Pluscrafter knows the difference between their, they're and there
@@e.6z1 okay, so what i meant was interpreters are not compilers, if you look at the original comment it makes sence, and i do know the difference, if that was what you were implying
Me: *blinks*
Him: Now we are done let’s code the entire f-ing universe
edit: dang this was a year ago when I didn't know how to code and now I feel bad for commenting this. Amazing video
@Yousef GG! sdhgasuydgsduygaysudgyasdgyaudhahdyaghyiuasdgyasgy!!!!
thats when you blink very slow
@Yousef GG! LANGUAGE
@@dominiktoser8531 dafaq
He speaks quite fast, this causes some times different words to be pronoucned wrong. For example he means to say LEXER and i hear LECTURE or LETUCE.
10:35: "generates all the tokens correctly..."
Me: *runs program*
output: [ ]
Input : 9 * 9
Output :
Input : d
Output : Illagel Char : d
Input : d * 9
Output :
I have the same problem is there any fix
@@gamingforever65 Yes please encountering the same issues
It should be at the tokens list, the [] should have a space in between
It took RUclips 2 years to recommend this amazing tutorial....
Really well done mate! It's inspired me enough to dabble on my own version.
Not sure about an entire language but could be really useful for making CLIs.
Thanks! Yes definitely useful for CLIs, and also for parsing your own custom data file format.
And it took RUclips 5 years to recommend it to me, lol.
@@Markadown me to
Great tutorial mate, but can we just take a moment to gaze in awe at this man's typing speed and code cleanliness like sheesh
finally, a version of BASIC that is actually basic
how help please
I can’t believe this dude wrote a full lexer without any modules. Great job
Dude, thanks. You don't know me, but I am a solo game designer with a solid "B" in art skills, but a "C-" in programming. I have been trying to implement a basic like script interpreter in a python program I am making. Been trying for several years to get it right. This tutorial is EXACTLY what I needed. Thanks again.
nice
This is amazing to be honest. I've never seen anyone else code as cleanly as you.
Do you think you could make a video on making a compiler next time?
Thanks! I do plan on doing that soon. The later episodes in this series have gotten more messy and complicated, and I'm planning on redoing this series first. I also am doing a simpler 4 part series on making a math interpreter before that. So hopefully I get around to doing a compiler soon :)
@@CodePulse Thanks for the quick reply! I look forward to future videos :)
@@CodePulse a compiler would be AMAZING!
This isn't cleanly written. There is lots room for abstraction here.
You mean compiler that actually writes machine code?
"We can multiply numbers": 1 + 2
Python default calculation: 1 + 2
1 + 2 = 6
SIKE its 3
@@mikethegamedev no it's 69,420
@@mikethegamedev damn bro I nearly did my homework wrong because u said it was 6
@@aw1lt ...
Why did you make an *_as_string_* method not just use the built in Python's *___str___* method?
I hadn't really used Python much in ages so never though of it then. I realized a while later but never bothered to change it.
@@CodePulse sorry im new to python and i recieve ths error but i dont have str in my code
AttributeError: 'str' object has no attribute 'fn'
@@jaysonlana9147 If you still have that issue, it means somewhere you've typed self.fn instead of ln. Probably in def copy()
@@anshbarhate2791the comment was 3 years ago
now create another language with that basic language you're creating
Funnily enough, when you are able to do that, you can call your language Turing-complete (it can recreate itself, in itself), and is mostly a good-enough programming language for most basic tasks.
Good luck with the speed of it
@@dimitar.bogdanov You mean "self-hosting".
@@0x1EGEN Your original reply:
"You mean "self-hosting", turing complete just means it can theoretically compute anything. en.wikipedia.org/wiki/Self-hosting_(compilers)"
An answer: no. A self-hosting compiler can compile itself, yes, but a language can be interpreted, and you could still make another language with it.
Being Turing-complete means that it can simulate a Turing-machine. Taken from Wikipedia:
"For example, an imperative language is Turing-complete if it has conditional branching (e.g., "if" and "goto" statements, or a "branch if zero" instruction; see one-instruction set computer) and the ability to change an arbitrary amount of memory (e.g., the ability to maintain an arbitrary number of data items)."
That means, that as long as you have if statements and some way to loop (be it goto statements or a for loop), your language is turning complete.
I'm actually doing that right now
This is great. Been working my way through Nand 2 Tetris on my own. I made it through the hardware portion all right but once it got to writing the assembler I felt completely lost. Hoping this will give me the nudge I need, so far I'm loving the content and can't wait to finish.
Nice, my brother is doing that too
Awesome! Thanks to all channels which shows this topic. I always wondered how this works :) Thanks to all!
oh your lexer is so nice . it actually handles problems.
my lexer just advances over them .
so once/if mine ever becomes a compiler instead of a interpreter.
literally everything will compile but whether or not it will run is another story entirely.
This channel is underrated...
Nice. I'm 15 and thinking of creating one in the future.
I might name it : Pascala
Pascala's name is derived from Pascal + Scala
ill take that m8
Don't share your project names with strangers until you've created something. Bad, bad idea
I’m always so envious of seeing young people with that drive. When I was 15 all I cared about was playing videogames and being cool, such useless things
Sounds gay af tbh
@@dimitar.bogdanov thats the stupidest thing I’ve ever heard. The name, or even the idea don’t matter, the execution does
You're just a god, I barely understand English, but I understand you more than compatriots
That's great to hear! Thanks
I've got like 3 yrs of experience in C#, but only like 3 months in Python. Probably not this I should do with only 3 months of exp. but I strongly believe that my C# skills will help. Amazing tutorial ngl
Really thx for this Toutorial! This was my first Toutorial that I used for Python ( If I don’t mention the Python Code in my Java File and 8 Videos of Python but I didn’t test them...) So I learned here not just how to make a programming language, I learned even Python with this Toutorial! Really thx for it!
I thought that the output of "1.2+1" would be "float: 1.2 | plus | int: 1", however I've noticed that it skips the plus sign entirely.
It does that for every first character behind a number. I checked my code (I translated your code into lua and thought I messed something up) and then was suprised to see that indeed, it skips the first character that comes after any number in the make_number function.
There is an easy fix to it tho! After the loop in the make_number function you need to decrement the self.pos by 1. (self.pos -= 1) After doing that it now correctfully translate the input "1.2+1" to "float: 1.2 | plus | int:1" instead of the output given above.
I do not know if the same issue has happened to anyone else before, but if it did it would be nice if you could pin this message, it was not as easy to track down as it might sound from above.
Nice video nontheless! It helped me out a lot!
Are you sure you didn't call self.advance() in the while loop of make_tokens() as well, after tokens.append(self.make_number())? That would result in calling self.advance() twice, which creates the issue you ran into. I have the code in the video and I was not able to reproduce your issue at all.
The problem is just you. There is something wrong with your code. You can copy the ep1 code from github to confirm that you did everything correctly.
wow this is genuinely quality content 10/10
The error output looks so neat!
Copilot suggested me how to get output like this:
calc> 12+23.3+g
Illegal Character: g
File , line 1
12+23.3+g
^
Error representation should be:
result = f'{self.name}: {self.details}'
result += f'
File {self.pos_start.filename}, line {self.pos_start.ln + 1}'
line = self.pos_start.filetext[:self.pos_start.col+1]
result += f'
{line}'
result += '
' + ' ' * (self.pos_start.col) + '^'
return result
WTF youtube's algorithm is already in 2080, I was thinking about creating a language yesterday and now I get this in my recommended
same
Google hears ur stuff or wut ever ur saying
I think I got something wrong. I followed the tutorial, but what happens when I do 1 + 1 is strange.
basic > 1 + 1
[, , ]
NEVERMIND I forgot to put __ after __repr
We are making a programming language with python which is an easy language
just imagine how the first programming would have been created
Well we do use C++ for Python which derives itself from assembly languages which derives itself from machine language
@@supersani21 I think python's written in C.
@@kartikeykushwaha3622 C++ can run C code btw so its not really a big difference.
@@GDPlainA It is. C++ is not C.
Assembly, and assembly was created with hex. Altrogut assembly is easy created.
Absolutely great job for a talented mad man like you. Looks like this series is gonna be sick. Thanks for sharing this! Gonna learn a lot from this
THIS WAS EXCELLENT! WELL DONE MATE!!
Awesome, I know have a fully working lexer and I am working on a programming language known as jublee. Which already has the basic features of addition , sub , mul and div.
link it and ill try it out anbd give my own feedback
Finally, my next project to test my 1 month of programming experience!
Bro you are a genius! I came for the custom OS project but I'm gonna have to watch your entire back catalogue!
Thanks! Hope this series is as good as my operating system one.
@@CodePulse im excited to finish this one quickly, and excited to see where the operating system goes!
Im enjoy with your video...great teaching 👍👍👍❤️❤️
Thank you :)
Im creating a language called Neptune, 'cuz it is my favorite planet. I want to make it the most easy to understand programming language using a lot of simple keywords
Good luck with it!
@MoolsDogTwo hey me too!
Make sure to make it beautiful bcuz Neptune is a beautiful planet 😁👍
I always wanted to make my own programming language. And I find perfect tutorial from 2018. Thank you!
7:11 really really important flaw: the while loop will keep appending same char to the string indefinitely once it starts. there's nothing to advance it. ok you caught this at 10:31, this took me a couple watches to see if you put that somewhere in the video
You dont have to type tons of 'elif' use a dict to map symbol to its value
I’m making a language called quil (yes I know there is only one “L”) this helped a lot
What a coincidence (look at my name)
Thank you so much for this tutorial! Very well explained ;)
I'll try making one in javascript!
Thanks again!
You're fairly damn good at explaining things.
This man types at the speed of sound, I havent even finished typing class Token: and the video is already over like holy fuck
Oh, man! I could watch this all day long.
my teacher let me make an a compilator for my exam, i want to see his face when he try to prove the nekolenguage
Dude! Great video!!!!
Thanks
CodePulse yeah man! You write some super clean code! I’m trying to make my own language just for fun and wow this has help a lot. It’s really really fun to! Keep it up man!!
i ran into a problem while coding and i literally searched for 45min befor i realised that i miss spelled a variable.
Btw great Video thanks ;)
This video reminds me that there is always a better programmer out there.
Good tutorial! I tried this once before when I was still pretty new at python and I didn't understand it so I gave up after the first two vids. But, now that I'm more familiar with the syntax of python, I can actually understand everything in this tutorial.
That's awesome to hear!
Now try to make one with assembly.
Sorry CodePulse, I have some questions.. :)
1. Python is a language that is a bit slow compared to other lnguages. So can another language created using python be faster than Python ?
2. Does this tutorial series include everything in BASIC Language ?
3. What are the basics of the Programmig Language ?
Many thanks to the tutorials you created ^)
1. A language created in Python can be faster if (a) it is compiled to machine code, or (b) it is compiled to byte-code to be interpreted by some other application such as JVM (Java virtual machine), or WASM (WebAssembly to allow it to run on the web).
2. No, as the series progresses the language differs more from the basic language.
3. I'm not sure what you are asking here.
Your welcome :)
This is something I can work with. I love your accent
thanks for the tutorial, you have good programming skills
How does the computer know what is basic
To speed things up you might want to set self.length to len(text) in __init__, else you change the complexity of advance to O(n) where n is the length of the text.
Are you saying the Python `len` function is O(n)?
@@CodePulse aaah I've done some tests and it seems to be O(1), apparantly Python builtins (Dict, Lists etc) keep track of the size internally.
@@unh0lys0da16 Makes sense, that's what I assumed. Different from C's strlen function which is O(n)
how did you get it so that when you click new terminal it says just terminal> and not the path to the folder you are working in?
Also I copied everything from github and type in the terminal 'python3 shell.py' nothing happens!
Edit: I have the Python extention for VScode in version 2018.3.0
On windows you can use the "prompt" command to change what text shows up.
If you are using windows 10, it preinstalls a python3 program, but this isn't the real python, rather a link to the microsoft store to install python. This could be why nothing happens. Try just run "python" instead of "python3", otherwise you may have to update your path.
@@CodePulse thanks, just changing pythin3 to python sorted it. (:
you're amazing!! Great tutorial
This is... actually really good.
I've been working on the class Error so long, now I can't pronounce the word 'error'
Haha
FYI, it’s [ɜɹːɚ]
Thank you for sharing this very clear and usefull material! it is amazing, congratilations!
Nice video. But please just don't copy the same thing HowCode does...
Thanks. My aim for this series is to improve on HowCode's tutorials, as his original series didn't use proper techniques, and he rushed his newer series in my opinion. I also plan on making the series much longer and add a lot more features that are missing from HowCode's tutorials (for example functions with arguments).
Okay. That's fine. I thought you did it because you didn't know what to do. But cool.
@Najmul hossain As in the minimax algorithm in game theory? It's not really the type of thing that I had planned for the channel, and there seems to be plenty of explanations out there already. But if enough people wanted it, I would definitely consider it.
The author @you at the final episode! @@
what is the commmand
random quesion:what does self mean and why did you use it
If I did this in a different Programming language, do I follow these steps or should I translate it?
well you cant run python in an interpreter/compiler that is not for python ;)
doesnt work without spaces
EDIT: fixed it by removing self.advance in if self.current_char in DIGITS
I am very exited to start creating my own programming language! I bet this will be very helpfull!
I hope so, good luck
Thank you so much for making this. Subscribed!
0:00 Hello everyone... this is YOUR daily dose of internet
A lexer is responsable turn source code into tokens, these tokens are identifiers, keywords, operators, delimiters and literals.
Much much thanks for your videos! It helped me a lot while other tutorials and series did not
seems difficult but i want to get into it ;) for the first time watching i just rewrite your code. When you began to improve Error class my brains just broke. I think i will watch this vid till I understand it enough good.
At all, good tutorials, one of the best ive found. Unfortunately, in Russian programming segment there is no tutors how to create your own compiler/interpreter. But it seems like i found an amazing one in English
sorry for broken English
Thank's for your comment! Your English is not bad. I think I overcomplicated this series, and I intend to simply things in my future tutorials :) Good luck!
thanks for your tutorial @CodePulse sir
3:34 line 35 should be self.text[self.pos], not self.text[pos]
Thanks for pointing that out!
Seems like the easiest language to understand out of the few I've seen! How did you come across it?
i get the error 'import nide' (nide is my language) at the start of the shell file.... no idea why. I even checked the github and it all was the same, im using python 3.9
can anyone help please!
edit: i also tried renaming everything to what he used and same result
Are they in the same file folder?
Yeah, I know kinda late
This is amazing!
I like how you need a programming language to make a programming language
For those worrying their language might be slow, Mojo is coming, No need to worry!
Imagine making a programming language built on a programming language, that's also built on a programming language
That's Julia for you.
when i try to use floats, it says "Illegal Character: '.'"
You probably have a mistake in your code
Did you get it fixed? I have the same issue.
a year ago i wanted to create a programming language but i don't even know what is class in python,but now i can code in rust,understanding OOP and little bit of data structure and algorithm
That is amazing! Well done, and good luck
Thanks you
great video . I wanted to ask :
1. Should keywords like *if* , *for* , *function* are implemented at this stage , I mean in the lexer?
2.Do we also implement a comment elimination strategy , like we do with spaces , in this phase?
1. It's up to you, I prefer to do it in the lexer as seen in one of my later tutorials.
2. Yes that sounds right
Please help me, it is showing that module basic has no attribute run, if i try to use 'from basic import run' ,it shows cannot import run from basic
Prepare for the OAK programming language people!
I dont really understand why you used a while loop for the lexer. A for-loop would have made it much easier, because you wouldnt need the advance()-function, cleaning up the code. Additionally it would have made the code execution much faster, which is an important factor if you write an intepreted language inside of an intepreted language
While loops are faster than for loops
I personally would've used enums for the token system, I'll just try to follow along with those, hope it isn't too much of a struggle (I'm using C++, and yes I know python doesn't have them builtin but there is a builtin lib for that)
I know this video is 4 years old, I will just say that you don't have to do
"'" + char + "'"
instead, you can do f"'{char}'"
This is so cool ...❤️
Thanks sir!
I can make my own programming language
Please more
I'm half way through making the next video, so I hope to have it out by Monday.
You are the best!
2 years ago exactly, today
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. Even though i already installed python3 and the extension
The code does not work, whenever I run it, I enter the expression into the prompt and then the prompt keeps staying the same, like if you hit enter, nothing happens, all the cursor does is go down one line
Not sure why that might be happening but you can compare your code to mine here: github.com/davidcallanan/py-myopl-code
@@CodePulse Thank you
@@CodePulse Also, Do you know how I could add more builtin fuctions, like a generic way to do so
i can just imagine teachers using this language in math class, okay students, find the answer to 435*1654, i can't figure it out, USE YOU'RE BASIC TO FIGURE IT OUT
Me 40 seconds in:
i can do this
Me now:
that got complicated really quick.y
Sorry... Maybe this series is a better place to start: ruclips.net/video/88lmIMHhYNs/видео.html
Thank you. please upload more content
I don't get the part of where it states whether the no. is a integer or not
If the number of dots/decimal points in the number is 0, then it can be an integer, otherwise it needs to be a float.
Your voice is very soothing
When I put a space in between my numbers it errors how do I fix that, I looked back through the video and couldnt find anything I did wrong so please help.
Never midn I fixed it by adding it to the character list under Lexer and doesnt seem to have broken anything and works fine
if i knew how to make a programming language, I would call it OceanCode and code for making text with another font like hello world is
anyways my favorite font is indeed consolas
I can make my special coding lang now ! Wow
Wow make a promgamming language!
Super useful !! Thanks you !