[1] The Lexer - Creating Your OWN Coding Language!

preview_player
Показать описание
This is Episode 1 in a series on how to create your own interpreted coding language using python. In this episode I will teach you how to create something called the LEXER.

DISCLAIMER: this is in no way an efficient programming language and this tutorial is for educational purposes.

If you have any ideas for improvements then you can do so on the GitHub Page (link below)

Links & Resources:
Рекомендации по теме
Комментарии
Автор

This is actually an amazing tutorial! You explain things really well too, unlike almost every other tutorial on the same subject

DiamantOpp
Автор

This is so helpful! I always wondered how lexers were implemented and even if this isn't something very advanced, it makes understanding so much easier! Thank you!

AndreasCorelli-dwmx
Автор

damnnn underrated my guy, you literally took making an ENTIRELY NEW CODING LANGUAGE, and made it EASY

silent
Автор

I watched the first five minutes, understood the concept, and made my own. Thank you for the great explanation!

Wallee
Автор

Legendary work! I'm currently going through the same process of making a compiler, so I guess YouTube sent me here to be amongst comrades. Best of luck on the rest of this language! Have you read any books like "Crafting Interpreters", by the way? That one is an absolute treasure for learning to make a language, plus it's graciously hosted for free online. It was a colossal help in my own studies at the very least, so who knows—it might be of use to you as well :)

spaghettiking
Автор

How are you so underrated? This video is amazing!

Alexciaooo
Автор

I have created my own programming language too using python as a backend but in my way, i mean that using my own set of logics to create an environment out from it and I haven't red any compiler design books. And it's working quite well then i had expected:').

prakamyakhare
Автор

I really appreciate how you explained that. It helped me understand the concept much better.🤝

neza
Автор

Good tutorial, but I would recommend actually making your lexer a class and parsing by line for scalibility and adaptability

coulterminer
Автор

I am a python programmer, and this is very good!

ArtikLamartik
Автор

I think there might be a slight problem with quotes. If you try to parse "Hh'd'Gg", it will break it into three tokens, not 1, won't it?

tomasvanercreates
Автор

i know this might sound stupid, but what theme do you use, its easier for me to match colors than match words/symbols. thanks!

quantaviousdinglenut
Автор

I love it!!! Please make more videos like this!

axsis
Автор

Nice tutorial, but how could you take print("Hi")? If I append "(" and ")", it shows me ['(', ')', 'print"Hello, world!"']

rezqy_
Автор

excellent video
looking forward for part 2 :)

homerlol
Автор

I would recommend using a state machine.

theowillis
Автор

Alright, a few seconds in. Haven't watched more. But since this is written in Pythin, I am really hoping the custom language is not interpreted! Please be compiled!

oglothenerd
Автор

but like how do you obtain this knowledge. I have tried but with no avail. good job

SabeDoesThingsChannel
Автор

Every time you mention Lexer it sets off my Alexa :)

mikiex
Автор

i think there is an issue with " ' " crearing an invalid token, is it not better to compare symbol and begin of last token if last_token[0] != last_token[-1] for " and '

also me nitpicking here but: == False... really?

kenzostaelens