Make YOUR OWN Programming Language - EP 1 - Lexer

CodePulse December 4, 2018
Video Thumbnail

CodePulse

View Channel

About

No channel description available.

Video Description

Hello and welcome to the first episode on how to create your VERY OWN programming language in Python. We will be using Python3 in this series, but feel free to follow along with any other language. The language that we will be creating will be our own implementation of BASIC. In the first three videos we will be focusing on adding numbers and operators. After that we will expand our language to support the rest of the language features, such as strings, variables, if statements, for statements and functions. In this first episode we create the lexer, which breaks up our input into a list of what we call tokens. We can then use those tokens in the next video to further analyze the code. If you have any questions or problems, don't hesitate to leave a comment below! And don't forget to leave a like if you enjoy the video :) LINKS Python3 - https://www.python.org/downloads/ BASIC language - https://en.wikipedia.org/wiki/BASIC What is __repr__ - http://bit.do/eCm93 This series is loosely based on https://ruslanspivak.com/lsbasi-part1/ ALL CODE IS ON GITHUB https://github.com/davidcallanan/py-basicinterp bitchute channel: https://bitchute.com/CodePulse bitchute referral code: codepulse Uncle Bob Clean Architecture book: https://read.amazon.co.uk/kp/embed?asin=B075LRM681&preview=newtab&linkCode=kpe&ref_=cm_sw_r_kb_dp_zbbTDb7E1P022&tag=davidcallanan-20 (affiliate link)

You May Also Like

Craft Your Own Language: Start Now

AI-recommended products based on this video

Loading...
2 Pack Controller Battery Pack Rechargeable for Xbox One/Xbox Series X|S with 4 Battery Cover Xbox Play and Charge Kit with Micro USB Charging Cable for Xbox One S/X/Elite Controller

2 Pack Controller Battery Pack Rechargeable for Xbox One/Xbox Series X|S with 4 Battery Cover Xbox Play and Charge Kit with Micro USB Charging Cable for Xbox One S/X/Elite Controller

(355)
$36.99
FREE delivery Sun, Aug 24
Loading...
Syntech Link Cable 16FT for PCVR Compatible with Oculus/Quest 3/Meta Quest 3S, Quest2/Pro/Pico 4/Ultra Accessories and PC/SteamVR, High Speed PC Data Transfer, USB 3.0 to USB C Cable for VR Headset
Best Seller

Syntech Link Cable 16FT for PCVR Compatible with Oculus/Quest 3/Meta Quest 3S, Quest2/Pro/Pico 4/Ultra Accessories and PC/SteamVR, High Speed PC Data Transfer, USB 3.0 to USB C Cable for VR Headset

(19,554)
$24.99
FREE delivery Tue, Jun 17 on your first order
300+ bought in past month
Loading...
USB to USB C Cable for iPhone 16/15 [MFi Certified] Carplay Cable Car Charger Cord 6FT/4Pack Compatible with iPhone 16/16 Plus/16 Pro/16 Pro Max, iPhone 15/15 Plus/15 Pro/15 Pro Max,iPad Air/Mini

USB to USB C Cable for iPhone 16/15 [MFi Certified] Carplay Cable Car Charger Cord 6FT/4Pack Compatible with iPhone 16/16 Plus/16 Pro/16 Pro Max, iPhone 15/15 Plus/15 Pro/15 Pro Max,iPad Air/Mini

(1,176)
$16.97
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
AsperX for Magsafe Power Bank, 10000mAh Wireless Magnetic Power Bank, 22.5W Wire Fast Charging Portable Charger with USB C Cable, LCD Display for Magsafe Battery Pack for iPhone 16/15/14/13/12

AsperX for Magsafe Power Bank, 10000mAh Wireless Magnetic Power Bank, 22.5W Wire Fast Charging Portable Charger with USB C Cable, LCD Display for Magsafe Battery Pack for iPhone 16/15/14/13/12

(895)
$37.98
FREE delivery Sat, Sep 20
400+ bought in past month
Loading...
AstroAl Digital Multimeter 2000, Multimeter Tester with Volt Amp Ohm, Multi Meter Measures Voltage, Current, Resistance, Continuity and Diode, Electrical Tester with Test Leads, Backlight LCD Display
Best Seller

AstroAl Digital Multimeter 2000, Multimeter Tester with Volt Amp Ohm, Multi Meter Measures Voltage, Current, Resistance, Continuity and Diode, Electrical Tester with Test Leads, Backlight LCD Display

(48,000)
$19.54
FREE delivery Mon, Aug 25 on your first order
2K+ bought in past month
Loading...
Demon Mechanic Elite X Ski Tuning Kit & Snowboard Tuning Kit with Ski Wax Iron, Ski and Snowboard Wax & Demon Elite X Ski and Snowboard Edge Tuner w/Diamond Files

Demon Mechanic Elite X Ski Tuning Kit & Snowboard Tuning Kit with Ski Wax Iron, Ski and Snowboard Wax & Demon Elite X Ski and Snowboard Edge Tuner w/Diamond Files

(181)
$243.64
FREE delivery Aug 26 - 29
Loading...
17 in 1 Complete Drinking Water Testing Kit - 100 Strips + 4 Bacteria Tests - Tap and Well Water Test Kit, Easy to Test and Read for Hardness, Lead, Iron, Fluoride, pH, Copper, Bacteria and More

17 in 1 Complete Drinking Water Testing Kit - 100 Strips + 4 Bacteria Tests - Tap and Well Water Test Kit, Easy to Test and Read for Hardness, Lead, Iron, Fluoride, pH, Copper, Bacteria and More

(46)
$27.99
Prime
500+ bought in past month
Loading...
Water Testing Kits for Drinking Water: 125 Strips 16 in 1 Drinking Water Test Kit, TESPERT Water Test Strips with Hardness, PH, Mercury, Lead, Iron, Copper, Chlorine, Cyanuric Acid

Water Testing Kits for Drinking Water: 125 Strips 16 in 1 Drinking Water Test Kit, TESPERT Water Test Strips with Hardness, PH, Mercury, Lead, Iron, Copper, Chlorine, Cyanuric Acid

(1,158)
$29.57
FREE delivery Thu, Aug 14 on your first order
50+ bought in past month
Loading...
Pishengfa DIY Stitch Book, Embroidery Stitch Book, DIY Sewing Books, EmbroideryS Books of Stitches, with 86/128 Sewing Tips for Beginners, Unique Embroidery Handmade Gifts (Grey)

Pishengfa DIY Stitch Book, Embroidery Stitch Book, DIY Sewing Books, EmbroideryS Books of Stitches, with 86/128 Sewing Tips for Beginners, Unique Embroidery Handmade Gifts (Grey)

(0)
$29.99
$6.99 delivery Dec 23, 2025 - Jan 2, 2026
700+ bought in past month
Loading...
9V Battery Powered Led Kayak Strip Lights, 2 Pcs 6.56 FT RGB Color Changing Paddleboard SUP Canoes Lights, IP68 Waterproof Marine Submersible Boat Light Strip with Remote, Marine Boat Interior Light.

9V Battery Powered Led Kayak Strip Lights, 2 Pcs 6.56 FT RGB Color Changing Paddleboard SUP Canoes Lights, IP68 Waterproof Marine Submersible Boat Light Strip with Remote, Marine Boat Interior Light.

(0)
$45.99
FREE delivery Mon, Jul 7