How To Build A Programming Language From Scratch

  Рет қаралды 83,951

tylerlaceby

tylerlaceby

Жыл бұрын

This is the first part in a multipart ongoing series for building a minimal programming language in JavaScript. Today's video cover lexing and how to produce tokens needed for the parser stage.
Source code: github.com/tlaceby/guide-to-i...
If you want to follow along then please have a modern version of Deno installed and the desire to learn. This series will go over the basics from lexing, parsing and eventually into interpreting a language with a custom syntax similar to JavaScript.
🔔 JOIN THE COMMUNITY 🔔
kzfaq.info... -- Subscribe xD
----------------------------------------
-- Social Links --
Discord - / discord
GitHub - github.com/laceby/

Пікірлер: 192
@koko5498
@koko5498 Жыл бұрын
No joke this is one of the most interesting tutorials i've watched.
@tylerlaceby
@tylerlaceby Жыл бұрын
Yay 😀
@stellari81
@stellari81 Жыл бұрын
I just finished watching the whole series and I must tell you that even if I don't know TS, i was able to follow you along and that's because your explanation is very comprehensible. The series is very enjoyable and a lot useful! Thank you for your dedication and passion.
@GearsDatapacks
@GearsDatapacks 11 ай бұрын
I've been trying to figure out this by myself recently, which was pretty hard. Luckily, I found this series! Would love to see more videos explaining things like types, methods, unary operators, etc.
@user-bq8xx1vj6u
@user-bq8xx1vj6u Жыл бұрын
I am also developing my own computer language in c, but I have a little difficulty because I am Chinese, but the computer language is English, which is difficult to do
@user-bq8xx1vj6u
@user-bq8xx1vj6u Жыл бұрын
There may be a grammatical error in my last sentence
@icicles0
@icicles0 Жыл бұрын
@@user-bq8xx1vj6u There isn't.
@deadbrav
@deadbrav Жыл бұрын
@@user-bq8xx1vj6u you're good, there is no error in your sentence
@sinsnowthe1450
@sinsnowthe1450 Жыл бұрын
@@user-bq8xx1vj6u I guess in your case you would treat it like learning an actual language.
@JeseHere
@JeseHere Жыл бұрын
我也想创一门编程语言
@offroaders123
@offroaders123 Жыл бұрын
This was great, thank you! Looking forward to watching the next video in the series.
@codybontecou
@codybontecou Жыл бұрын
Nice! Loving all of the content you've been pushing out.
@ashwinm9062
@ashwinm9062 Жыл бұрын
Great content, love the pace, keep up the good work!
@ZacZajdel
@ZacZajdel Жыл бұрын
You got yourself a new follower. I remember taking Compiled Systems in college and this course really brought me back to the "good ole days". Thanks my guy!
@tylerlaceby
@tylerlaceby Жыл бұрын
Glad to hear it! Hope this series is good for you.
@aakarshanraj1176
@aakarshanraj1176 6 ай бұрын
This is great and thank you for making this series! There aren't many series like these.
@Ericsicons
@Ericsicons Жыл бұрын
Thanks for the video very few high quality videos on the subject!
@KHeT533
@KHeT533 6 күн бұрын
The tutorial is really good: I could follow along using C, which is really different from typescript. And that's not because I'm really good, but because you are. As pointed out in another comment, the explanations is very clear.
@tylerlaceby
@tylerlaceby 6 күн бұрын
You are super sweet. Thanks. Hopefully you enjoy the high level series xD.
@gducrash
@gducrash Жыл бұрын
Such an amazing timing! I've been working on my own scripting language in Typescript and have been struggling with the parser for a while now. Looking forward to future videos!
@tylerlaceby
@tylerlaceby Жыл бұрын
Yay. Yea I figured typescript would be a good choice for this series as I usually write parsers in C/C++ and it would take to long. But I think once you understand the recursive descent parser it all falls into place. If you have additional questions don’t hesitate to ask me on my discord and I’ll respond ASAP xD.
@grape264
@grape264 5 ай бұрын
what ide do you use? i can't make typescript work in vscode
@fraserwilliams5223
@fraserwilliams5223 Жыл бұрын
Absolute legend. Keen for this series!
@CompactStar
@CompactStar Жыл бұрын
I am developing an interpreter in C++ myself right now so this series's release was well-timed.
@tylerlaceby
@tylerlaceby Жыл бұрын
That’s awesome. If you have any questions feel to reach out on discord and I would love to chat or answer questions about interpreter/ vm stuff
@sum1179
@sum1179 Жыл бұрын
I loved your vídeo! Thank you so much for this. Once I'm done I'll post the github I made with your tutorials
@tylerlaceby
@tylerlaceby Жыл бұрын
Glad you liked it. After finals week im hoping to finish the series xD
@yadavdhakal2044
@yadavdhakal2044 6 ай бұрын
Best series on compiler design!!
@whozproxy
@whozproxy 7 ай бұрын
Thanks man! Very useful tutorial! At first, it was hard to translate it into roblox's luau, but it got easier! I wouldn't have been able to make my language without you!
@BoomTrucks
@BoomTrucks 5 ай бұрын
BEST TUTORIAL IVE EVER SEEN
@anomienormie8126
@anomienormie8126 Ай бұрын
Absolutely delightful.
@gurvirbaraich2028
@gurvirbaraich2028 Жыл бұрын
One of the best series
@user-hh7kt4le3q
@user-hh7kt4le3q Жыл бұрын
Honestly, writing along this video made me really appreciate Dart's extensions
@Kickin0u0in0the0nut
@Kickin0u0in0the0nut 6 ай бұрын
good tut, crazy seeing TS, I feel like reading c++ is harder
@matejtydli8332
@matejtydli8332 Жыл бұрын
amazing! I thought I would have to do it in c/c++
@tylerlaceby
@tylerlaceby Жыл бұрын
Obviously this kind of interpreter is very slow but the sane principles apply. Hope it’s of use for you.
@pandasoli6581
@pandasoli6581 8 ай бұрын
After watch for some minutes I thought: I can do it in Deno! Wow nice and unique idea! But you did the same hahahha Nice video 💜
@nasc.v
@nasc.v 3 ай бұрын
Please how do I configure deno to work on vscode
@marcelijankowski9593
@marcelijankowski9593 Жыл бұрын
Thanks!
@Fidumo
@Fidumo Жыл бұрын
first time using typescript and im glad its similar to a language i know (its javascript lol), but im also new to javascript so i hope i learn some things from this
@tylerlaceby
@tylerlaceby Жыл бұрын
Hopefully you enjoy the series. There are some better ways I could have implemented some features through the series but I write the code following the C++ example I was originally planning lol. So there’s more typescript ways of doing things here
@drtheoretisch
@drtheoretisch 2 ай бұрын
The idea is really good, however, please, please, please, use better code practices like DRY (not repeating src[0] == ... over and over or again) or using the ===, instead of the == operator and these kinds of things. Not considering this stuff in tutorials might shorten the length of the video, but beginners will pick it up, think this is how it should be done and use it in their daily use until someone tells them, this is not a good idea.
@tabdig
@tabdig 8 ай бұрын
Very nice video, love how you explain everything! What theme do you use?
@tylerlaceby
@tylerlaceby 8 ай бұрын
I think this is Xcode theme or Dracula
@tabdig
@tabdig 8 ай бұрын
@@tylerlaceby Thank you!
@YeahEsCereal
@YeahEsCereal 5 ай бұрын
Can’t wait to make a programming language with words we use that aren’t words. (e.g. “smth”)
@tylerlaceby
@tylerlaceby 5 ай бұрын
Yepppers
@Recordd-bf2xc
@Recordd-bf2xc 9 ай бұрын
trying to complete this code in javascript when your using typescript; even though, its a good tutorial!
@ikechukwucharles2314
@ikechukwucharles2314 Жыл бұрын
This guy is such a badassss!!!!
@tylerlaceby
@tylerlaceby Жыл бұрын
Aww thanks
@ikechukwucharles2314
@ikechukwucharles2314 Жыл бұрын
Please can how do a video of how to write a jsx transpiler?
@ikechukwucharles2314
@ikechukwucharles2314 Жыл бұрын
You are welcome by the way😊
@gurvirbaraich2028
@gurvirbaraich2028 Жыл бұрын
Loved your series. I started to go with c++ but I am stuck at binary expression. What should I do? It would be helpful if your make some videos in c++ as well. Thanks for great stuff.
@tylerlaceby
@tylerlaceby Жыл бұрын
What part are you stuck with ? Also if you need some c++ help I would love to hop on a discord call and clear some things up hopefully. Also feel free to check out the repo on GitHub I have called emu
@randomchannel1281
@randomchannel1281 5 ай бұрын
@@tylerlaceby Yo Discord to help hands on one on one guide? I have questions a ton of them.
@mouhamadabushaqra3675
@mouhamadabushaqra3675 11 ай бұрын
Great video ,but any idea how can I publish my own language ?
@CRZOANIMS
@CRZOANIMS 6 ай бұрын
9:54 just saving my spot
@thomasd1406
@thomasd1406 Жыл бұрын
I'm new to TypeScript and am having trouble with running the script. Where (and how) do I run it? I tried using both the terminal and powershell, but those did not work.
@tylerlaceby
@tylerlaceby Жыл бұрын
I am using the runtime Deno through this series. It’s like node but supports typescript without a implicit build step.
@einfacherkerl3279
@einfacherkerl3279 5 ай бұрын
shouldnt you be using a map and lookahead() before moving the pointers because there could be multiple matches you would need to backtrack?
@tylerlaceby
@tylerlaceby 5 ай бұрын
Yep. This syntax has no more than 1 look ahead to parse. However if there were more and that was needed then indeed that would be a better choice
@_slier
@_slier Жыл бұрын
cool.. im bored reading crafting interpreter.. i will take a brief break from that book and follow your tutorial
@tylerlaceby
@tylerlaceby Жыл бұрын
Haha well hopefully it’s helpful
@_slier
@_slier Жыл бұрын
@@tylerlaceby haha hopefully.. i always have stuck at parsing.. did you do pratt parsing in this walkthrough?
@ahmadkhudai
@ahmadkhudai Жыл бұрын
YESSS
@tylerlaceby
@tylerlaceby Жыл бұрын
Glad you enjoy.
@oglothenerd
@oglothenerd 4 ай бұрын
Should the lexer handle floats, or is that a job for the AST?
@tylerlaceby
@tylerlaceby 4 ай бұрын
Great question. This is usually the job of the lever. As the lexer can check for characters like . And syntax for hex or binary literals. So floats or whatever are checked in the lexing state.
@oglothenerd
@oglothenerd 4 ай бұрын
@@tylerlaceby Ah, cool! Thank you!
@spideyzac9355
@spideyzac9355 Жыл бұрын
This is a great video but may I recommend using switch cases instead of a bunch of if-else blocks or using regex?
@tylerlaceby
@tylerlaceby Жыл бұрын
Yep I totally agree using regex here is your friend. But for a beginners series on language development I think it’s best to not use any regex as it’s more clear what’s happening. Cheers
@spideyzac9355
@spideyzac9355 Жыл бұрын
@@tylerlaceby yeah that makes sense
@spideyzac9355
@spideyzac9355 Жыл бұрын
But I mean this dosent have to be beginner friendly because you are are talking about a very major subject that I think people would need some background knowledge
@tylerlaceby
@tylerlaceby Жыл бұрын
@@spideyzac9355fair point. Yea I made some design decisions through the series that were a bit more cumbersome than needed. Hopefully it’s still good enough to teach this topic for beginners. Any other suggestions would also be appreciated as well.
@logangraham2956
@logangraham2956 Жыл бұрын
@@spideyzac9355 I would only half agree. if a person is only mildly curious of the topic their not going to go learn a whole shit ton of stuff and then come back to the video that's suppose to explain how it's done, they'll probably just move on to the next video that doesn't have the prerequisite knowledge requirements. once you have a complete but not optimized piece of software you at least have a good reference that you can work backwards from to understand the components and optimize them.
@nasc.v
@nasc.v 3 ай бұрын
Please how do I get deno working
@no-one6790
@no-one6790 Жыл бұрын
I'm programming this in C++, and have a small problem. In C++ a map doesn't return Null when key value pair is not found, but instead return 0. It conflicts with the TokenType Number, that is also assigned 0 in the enum TokenType. My solution to this was to start the enum from 1 instead of 0, but it doesn't look very pretty. Are there any alternatives? Great tutorial BTW, can't wait for more!
@tylerlaceby
@tylerlaceby Жыл бұрын
Well instead of just using the value run a check first. Then if it’s found it’s a keyword and if not it’s a identifier token.
@tylerlaceby
@tylerlaceby Жыл бұрын
If you hsvue any other questions let me know and message me on discord.
@logangraham2956
@logangraham2956 Жыл бұрын
that's because null is basically the same as 0. what i would do is just start the enum TokenType with a NULL TokenType.
@logangraham2956
@logangraham2956 Жыл бұрын
Something like ... ``` enum TokenType{ _NULL, _NUMBER, _IDENTIFIER, _EQUALS, _OPEN_PAREN, _CLOSE_PAREN, _BINARY_OPERATOR, _LET }; ```
@no-one6790
@no-one6790 Жыл бұрын
Thank you for your answers, really appreciate them!
@riceontopofbeans534
@riceontopofbeans534 Жыл бұрын
Can't I just use a for loop instead of a while loop using .shift()? I think it would do the same thing.
@tylerlaceby
@tylerlaceby Жыл бұрын
There’s tons of ways to implement this. For the sake of tutorial I used a while loop constantly shifting the array down. This means the first element is the current character. However for a more performant and professional approach I would be using a while loop with helper methods that get the current token. But to be honest a while loop is still used in both cases. The reason is we don’t know how we need ti step through the source code.
@7th_CAV_Trooper
@7th_CAV_Trooper 6 ай бұрын
I think the assignment operator is just another binary operator. left operand is a memory location and right operand is an expression. No?
@tylerlaceby
@tylerlaceby 6 ай бұрын
Yessir
@7th_CAV_Trooper
@7th_CAV_Trooper 6 ай бұрын
@@tylerlaceby my work buddy and I wrote a simple scripting language for a billing system back in 1996 and I was looking at our code from back then. Got me wanting to do it again, but better. Which is why I'm checking out your series. Great fun!
@sergiobost7434
@sergiobost7434 Жыл бұрын
Good stuff! I have a question: So programming languages are created by programming languages… how was the first one created then?
@tylerlaceby
@tylerlaceby Жыл бұрын
Circuits.
@tylerlaceby
@tylerlaceby Жыл бұрын
Like to implement a compiler you need a way to implement the logic. That’s fine through abstraction after abstraction in hardware and then software.
@tylerlaceby
@tylerlaceby Жыл бұрын
If you are still confused then feel free to reach out on discord and I can answer any questions over call xD. Cheers
@heruhday
@heruhday 9 ай бұрын
Binary instruction code
@0xabdrahim
@0xabdrahim 4 ай бұрын
What vscode theme are you using ?? great video btw
@tylerlaceby
@tylerlaceby 4 ай бұрын
I think this Ayu
@0xabdrahim
@0xabdrahim 4 ай бұрын
@@tylerlaceby yeah it is thanks 👍
@martinvacheron3839
@martinvacheron3839 4 ай бұрын
@@0xabdrahimcan’t manage to find… do you have the exact name or link? Thanks!
@legion_prex3650
@legion_prex3650 Жыл бұрын
cool! follow
@NemGamingAkos
@NemGamingAkos Жыл бұрын
Hi! Please, can somebody help? When I use Deno.exit(1) I says in error: cannot find name "Deno". I've done everything in the .vscode too, but in the settings.json it says, "Unknown Configuration Setting".
@tylerlaceby
@tylerlaceby Жыл бұрын
So you need to have Deno installed and available on your path. Furthermore you will need to install the Deno vscode extension. Once that’s installed and you are still having issues then I don’t know man. I guess you could make sure no other extension is causing issues
@priceyt6839
@priceyt6839 7 ай бұрын
i don't think the 12th video in this programming language tutorial playlist is meant to be there
@Talel_kraiem
@Talel_kraiem Жыл бұрын
Is this how js frameworks does transform their syntaxe to a compliant javascript syntaxe ?
@tylerlaceby
@tylerlaceby Жыл бұрын
Yes and no. In the case of big parsers and transpiler a they use a more complex syntax and parsing stages then we will cover. However the principles of parsing still apply. But if you are looking to translate JavaScript to another language or form then this won’t be of as much help then if you are just trying to learn how to write your own custom language with its own syntax.
@Ab-cj6gl
@Ab-cj6gl 9 ай бұрын
Hey! I have this idea of creating an OS emulator on the browser using JavaScript. I'm thinking it'll look something like Linux and I want to program everything from scratch. I want to build a full functioning command line for it using JavaScript After watching this video it's kind of popped in my head why wouldn't I even go an extra mile and create a scripting language for it What do you think about this project? Is it waste of time? I'm still learning programming I don't know a lot about system languags and how they're built I know just about web dev but I have an urge to create a project like this!
@tylerlaceby
@tylerlaceby 9 ай бұрын
It’s a bit much. It could honestly be easier to just build something less abstracted away like JavaScript. But either way it would be a good project. You can go the other direction and make a text based OS in assembly and then try to get C working. It’s also super complex but honestly will be easier imo. Plus you can then use these skills more directly and te knoll the you will gain will be insurmountable.
@muffinman42069
@muffinman42069 3 ай бұрын
i have the error "Operator '>=' cannot be applied to types 'number' and 'number | ((index: number) => number)'." on line 41 (returning the isint fucntion) how can i fix this?
@tylerlaceby
@tylerlaceby 3 ай бұрын
I cannot be sure as I don’t know what code you wrote. Please feel free to contact me in my discord server and I would love to help. discord.gg/NpPDyJ6X
@muffinman42069
@muffinman42069 3 ай бұрын
@@tylerlaceby i fixed it, but i need help with another error. i will join the discord
@andrewdunbar828
@andrewdunbar828 23 сағат бұрын
parenthasea
@----000
@----000 Жыл бұрын
I'm new to typescript, but couldn't: function isint (str: string) { const c = str.charCodeAt(0); const bounds = ['0'.charCodeAt(0), '9'.charCodeAt(0)]; return (c >= bounds[0] && c = 0 && +str
@tylerlaceby
@tylerlaceby Жыл бұрын
Yea that would work as well.
@----000
@----000 Жыл бұрын
@@tylerlaceby Unfortunately, I just tried using it and realized that +" " == 0 and +" " == 0 are true statements for some reason. So I'll have to use whitespace checker
@krishnasoni3971
@krishnasoni3971 Жыл бұрын
I want to develop a language which give a game development environment and easy to learn can you give me some suggestions?
@tylerlaceby
@tylerlaceby Жыл бұрын
I honestly don’t know what your even asking.
@nasc.v
@nasc.v 3 ай бұрын
[ts] cannot find name 'deno' . Please someone help here
@tylerlaceby
@tylerlaceby 3 ай бұрын
Deno is a runtime similar to node. If you don’t have it installed then first install it.
@dekooks1543
@dekooks1543 5 ай бұрын
Can I ask what keyboard you are using ?
@tylerlaceby
@tylerlaceby 5 ай бұрын
Yes honestly a cheap keyboard off Amazon I got a few years ago. I don’t have it anymore so sadly I don’t know.
@grape264
@grape264 5 ай бұрын
Does someone know how to be able to use(run) TS in Visual Studio Code?
@tylerlaceby
@tylerlaceby 5 ай бұрын
Through the terminal you use use deno. However to follow along with this series you will need deno or to modify a few io related things. But by doing so you could use ts-node and I’m sure an extension exists for that
@grape264
@grape264 5 ай бұрын
@@tylerlaceby Thanks man
@LuckaOnThatZaza
@LuckaOnThatZaza 7 ай бұрын
I can't download Deno to get the functions to test the lexer. how do i fix the problem. I'm programming the coding language on vscode, does it have something to do vscode itself
@tylerlaceby
@tylerlaceby 7 ай бұрын
Demo is a runtime for JavaScript just like Node. It must be downloaded to follow along with the series directly. You can alter some of the code ( not much ) and use node instead if that’s easier.
@LuckaOnThatZaza
@LuckaOnThatZaza 7 ай бұрын
@@tylerlaceby Thanks, I really appreciate it
@LuckaOnThatZaza
@LuckaOnThatZaza 7 ай бұрын
Could you make a tutorial that converts the Deno code into Node because it keeps giving me errors whenever i try to convert it to Node
@LuckaOnThatZaza
@LuckaOnThatZaza 7 ай бұрын
I found a way to use deno Replit has a Deno built in to the website
@nasc.v
@nasc.v 3 ай бұрын
I downloaded deno but the extension isn't downloading. What could be the problem
@holoperfection
@holoperfection Жыл бұрын
how do i test the code i wrote from your tutorial? i pressed all the button but the code didnt run how do i fix this?
@tylerlaceby
@tylerlaceby Жыл бұрын
First pull the code from GitHub in the video description and verify that it works. If you are still having issues then message me on discord.
@holoperfection
@holoperfection Жыл бұрын
@@tylerlaceby no i mean like how do you run the script what keybinds do you use to run the script?
@JustJuk
@JustJuk Жыл бұрын
~edit: (didnt let me just edit the comment below) but how do i fix it?
@tylerlaceby
@tylerlaceby Жыл бұрын
Send me a message on discord and I can help for sure
@3_14pie
@3_14pie 5 ай бұрын
Why javascript and not a proper systems language, like rust,c or go? Isn't it ridicuously slow to process another programming language ontop of it? And being interpred sure don't help
@tylerlaceby
@tylerlaceby 5 ай бұрын
I mentioned this a few times. It’s not meant to be fast. This is meant to be an intro to language development. Also you are very misguided if you think Go is a systems language. Go would be a poor choice also for writing a practical language in. The use of JavaScript is not to be taken as a best practice. Nor are many of tye lessons taught in this series. Instead it’s to be a simple language to follow along with while covering a typically complex topic. By using JavaScript we don’t need the learner to also be side tracked with memory management, borrow checker, lifetimes or other things which detracts from the point of the series. I’m still laughing that you think Go is a systems language lmao.
@3_14pie
@3_14pie 5 ай бұрын
@@tylerlaceby Yes, I commented before watching to know if would be worth it, as it is a pretty lengthy series, and I have had many annoying experiences of "wow, this totally isn't what I was looking for" 3h in. And btw, you sold me on it, my worries were that it would be another case of "let's ignore the other shapes and make the circular piece fit in every hole", because there's A LOT of people who insist on using js for everything, everytime, no matter what
@DoD618
@DoD618 11 ай бұрын
16:34
@eggs-yt
@eggs-yt 7 ай бұрын
Please help me. I keep getting the error 'Cannot find name: Deno'. I have no idea what to do
@tylerlaceby
@tylerlaceby 7 ай бұрын
Deno is something which is similar to NodeJS. You need to install it
@eggs-yt
@eggs-yt 7 ай бұрын
i did but it still gives the error @@tylerlaceby
@user-pl4lk2th3b
@user-pl4lk2th3b 4 ай бұрын
I installed it how am i going to import it? @@tylerlaceby
@marinbb6946
@marinbb6946 18 күн бұрын
what keyboard are u using
@tylerlaceby
@tylerlaceby 18 күн бұрын
Well I no longer use that keyboard. It was a cheap mechanical keyboard off Amazon. Now I use a Logitech MX keys.
@cronus22345
@cronus22345 Жыл бұрын
It's says "command not found: deno" I don't know why. Can you help me?
@tylerlaceby
@tylerlaceby Жыл бұрын
You need to install deno to follow along. Deno is like NodeJS but a different runtime. If you use node you will have to use the node specific code when appropriate.
@goldencitizen285
@goldencitizen285 10 ай бұрын
do i need to import deno from the deno extension? the word "deno" is still highlighted red.@@tylerlaceby
@eduardopozos5022
@eduardopozos5022 2 ай бұрын
Did you create an interpreter or compiler?
@tylerlaceby
@tylerlaceby 2 ай бұрын
Interpreter
@tylerlaceby
@tylerlaceby 2 ай бұрын
More precisely a tree-walk interpreter.
@kittyboochanyesbongono8467
@kittyboochanyesbongono8467 Ай бұрын
@@tylerlaceby So, the language you are creating in this series is an Interpreted language. Right?
@ismu123_aka_best_player_of_mc
@ismu123_aka_best_player_of_mc 2 ай бұрын
.bsx files thx to u
@kittyboochanyesbongono8467
@kittyboochanyesbongono8467 Ай бұрын
How to install Deno?
@tylerlaceby
@tylerlaceby Ай бұрын
Search that into google !?!?
@DarkOverlord-mc472
@DarkOverlord-mc472 6 ай бұрын
my run was not working properly
@tylerlaceby
@tylerlaceby 6 ай бұрын
? If you need help I will try but I need specifics. I can guarantee you that the code works.
@BGDMusic
@BGDMusic 6 ай бұрын
TOKEN DOESNT LOOK LIKE A REAL WORD ANYMORE WTF WHY DOES THIS HAPPEN
@tylerlaceby
@tylerlaceby 6 ай бұрын
Haha 😂
@hi1cooler
@hi1cooler Ай бұрын
it errors on deno
@hi1cooler
@hi1cooler Ай бұрын
nevermind what now something different is happening $ deno run -A lexer.ts Unrecognized character found in source: ;
@hi1cooler
@hi1cooler Ай бұрын
oh wait nevermind again its fixed
@thewizard5291
@thewizard5291 9 ай бұрын
so... Anyone else trying this in C++?
@7469dany
@7469dany 10 ай бұрын
what language is this?
@DarkblooM_IO
@DarkblooM_IO 9 ай бұрын
TypeScript
@XenoProgramming
@XenoProgramming 28 күн бұрын
why tf is EVERYTHING in JS or TS nowadays!?!
@tylerlaceby
@tylerlaceby 28 күн бұрын
Cause that’s what powers the web hence the most programmers. I have a series in Go of that floats your fancy.
@XenoProgramming
@XenoProgramming 28 күн бұрын
@@tylerlaceby don't judge me, but i use C# lol. i find it has the widest range of uses. you can even use it to make an OS(one of my current projects :)
@oraleehighers8509
@oraleehighers8509 Жыл бұрын
😣 promosm
@tylerlaceby
@tylerlaceby Жыл бұрын
?
@zxivytaken
@zxivytaken Жыл бұрын
when i type deno run -A lexer.ts in terminal it does nothing help
@tylerlaceby
@tylerlaceby Жыл бұрын
You run the main.ts file xD
@purplenation3467
@purplenation3467 Жыл бұрын
Hi great video, but i got an issue i did everything the same way you did but i got this error: [5624:000002016A267DE0] 122924 ms: Scavenge 1373.9 (1424.5) -> 1373.5 (1436.0) MB, 67.7 / 0.0 ms (average mu = 0.340, current mu = 0.308) allocation failure; [5624:000002016A267DE0] 123186 ms: Scavenge 1381.2 (1436.0) -> 1382.0 (1437.0) MB, 235.9 / 0.0 ms (average mu = 0.340, current mu = 0.308) allocation failure; [5624:000002016A267DE0] 123390 ms: Scavenge 1382.0 (1437.0) -> 1381.3 (1460.0) MB, 204.0 / 0.0 ms (average mu = 0.340, current mu = 0.308) allocation failure; # # Fatal javascript OOM in Reached heap limit # Can someone help me with this i dont know what it is or how to fix it.
@tylerlaceby
@tylerlaceby Жыл бұрын
If you are using an older version of deno I would suggest upgrading with deno upgrade
@tylerlaceby
@tylerlaceby Жыл бұрын
However if that does not work then make sure the conditions are not different. Also make sure to verify the switch and default labels. If there is no break statement that could happen possibly
@purplenation3467
@purplenation3467 Жыл бұрын
@@tylerlaceby Thanks it works now!
@JustJuk
@JustJuk Жыл бұрын
i got an error @tylerlaceby and i cant show screenshot of it on comment!
@tylerlaceby
@tylerlaceby Жыл бұрын
Just add me on discord and tomorrow I’ll be free to help you out in a call.
@electricochy
@electricochy 14 күн бұрын
Can I add you on discord to install deno
@tylerlaceby
@tylerlaceby 14 күн бұрын
Just lookup Deno install. It's pretty simple. In also have a video on the topic too.
@kittyboochanyesbongono8467
@kittyboochanyesbongono8467 25 күн бұрын
23:48
@tylerlaceby
@tylerlaceby 17 күн бұрын
Yeah 😂
Providing AST Definitions - Programming Language From Scratch
9:19
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 79 МЛН
Haha😂 Power💪 #trending #funny #viral #shorts
00:18
Reaction Station TV
Рет қаралды 14 МЛН
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 19 МЛН
"ChatGPT, make a new programming language"
10:30
Alex Ziskind
Рет қаралды 118 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel
Рет қаралды 77 М.
I Made My Own Programming Language
10:20
CodeNoodles
Рет қаралды 82 М.
Making My Own Programming Language and Coding a Game in It
10:19
AstroSam
Рет қаралды 1,2 МЛН
So you want to make a Game Engine!? (WATCH THIS before you start)
14:39
Giant Sloth Games
Рет қаралды 268 М.
LLVM in 100 Seconds
2:36
Fireship
Рет қаралды 833 М.
Running "Hello World!" in 10 FORBIDDEN Programming Languages
18:07
Every Programming Language Ever Explained in 15 Minutes
15:29
Flash Bytes
Рет қаралды 277 М.
I made my own Text Editor (in Rust)
8:16
FaceDev
Рет қаралды 95 М.
Comparing C to machine language
10:02
Ben Eater
Рет қаралды 5 МЛН
Gizli Apple Watch Özelliği😱
0:14
Safak Novruz
Рет қаралды 4,3 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 110 М.
iOS 18 vs Samsung, Xiaomi,Tecno, Android
0:54
AndroHack
Рет қаралды 95 М.
Asus  VivoBook Винда за 8 часов!
1:00
Sergey Delaisy
Рет қаралды 1,1 МЛН