How to Create Your Own Programming Language - Episode 2: The Lexer
Creating a programming language is simpler than you might think. My goal with this, potentially short, series of videos is to give you a deeper understanding of programming languages and to not be afraid to start making your own.
In this episode, we'll be building the lexer for our language. I am working in PyCharm using Python 3.11, but you could use any IDE or any language so long as you are familiar enough with Python to convert the code.
Check out the creator who initially taught me all of this: https://www.youtube.com/playlist?list=PLZQftyCk7_SdoVexSmwy_tBgs7P0b97yD
My Programming Language, Sea: https://github.com/DavidMacDonald11/Sea-Compiler
End-of-Episode Source Code: https://github.com/DavidMacDonald11/basic-arithmetic-language/tree/e512296992f93d016772c518fe3a63a0d5711718
Puppy Image by Fran @thisisfranpatel from Pixabay https://pixabay.com/photos/puppy-pet-canine-dog-animal-lying-2785074/
Endcard Image by 200 Degrees from Pixabay https://pixabay.com/vectors/programmer-programming-code-work-1653351/
Ticking Sound by Walking.With.Microphones from Pixabay https://pixabay.com/sound-effects/old-fashioned-clock-sound-37729/
Background Song #1 The Weekend by chillmore from Pixabay https://pixabay.com/music/upbeat-the-weekend-117427/
Background Song #2 Happiness by chillmore from Pixabay https://pixabay.com/music/beats-happiness-113555/
Background Song #3 Tonight by chillmore from Pixabay https://pixabay.com/music/beats-tonight-109725/