Parser and Lexer — How to Create a Compiler part 1/5 — Converting text into an Abstract Syntax Tree
In this tool-assisted education video I create a parser in C++ for a B-like programming language using GNU Bison. For the lexicographical analysis, a lexer is generated using re2c. This is part of a multi-episode series. In the next video, we will focus on optimization. Become a member: https://youtube.com/Bisqwit/join Downloads: — https://github.com/bisqwit/compiler_s... All the material associated with this episode can be downloaded here. Acknowledgements: — Picture: Processors :: Jason Rogers — Music¹: Aryol :: The Strategy Continues :: Kyohei Sada (converted into MIDI and played through OPL3 emulation through homebrew software) — Music²: Star Ocean :: Past Days :: Motoi Sakuraba (SPC-OPL3 conversion) — Music³: Rockman & Forte :: Museum :: Kirikiri-Chan and others (SPC-OPL3 conversion) — Music⁴: Famicom Tantei Club Part II: Ushiro ni Tatsu Shōjo :: Dean’s Room :: Kenji Yamamoto (SPC-OPL3 conversion), original composition: Bach's Invention № 15 — Music⁵: Aryol :: Arrest :: Kyohei Sada (SPC-OPL3 conversion) — Music⁶: Ren & Stimpy Show : Fire Dogs :: Main Theme :: Martin Gwynn Jones and others (SPC-OPL3 conversion) — Music⁷: Aryol :: Warmup :: Kyohei Sada (SPC-OPL3 conversion) — Music⁸: Energy Breaker :: Golden-Colored Wind :: Yukio Nakajima (SPC-OPL3 conversion) — Music⁹: Wonder Project J :: House :: Akihiko Mori (SPC-OPL3 conversion) — SFX: Mostly from YouTube Audio Library. Some are recorded from video games like The Guardian Legend, Lunar Ball, and Super Mario All-Stars. ¹ 00:37, ² 02:46 & 39:26, ³ 10:10, ⁴ 16:06, ⁵ 27:18, ⁶ 37:20, ⁷ 38:58 & 45:58, ⁸ 49:00, ⁹ 50:40 My links: Twitter: / realbisqwit Liberapay: https://liberapay.com/Bisqwit Steady: https://steadyhq.com/en/bisqwit Patreon: / bisqwit (Other options at https://bisqwit.iki.fi/donate.html) Twitch: / realbisqwit Homepage: https://iki.fi/bisqwit/ You can contribute subtitles: https://www.youtube.com/timedtext_vid... or to any of my videos: https://www.youtube.com/timedtext_cs_... --Rant-- [9:35 PM] Bisqwit: Now uploading to YouTube. Within about 24 hours I will know if the rogue AI at YouTube slams the “limited or no advertising" stamp into it, or not. Actually, I only know if it does so when it does it. Then, I need to wait an additional 25 hours for YouTube staff to manually review it and clear the flag. If the flag does not appear, then it is possible that the bot just has not scanned it yet and I need to wait longer. Premature publication could mean that the bot will mark it after it has already been published, and then I will not receive any revenue for the first spike of views. It used to be 18 hours (since uploading that the bot does its evil deeds), but nowadays YT recommends waiting just 3 hours. We will see, we will see. #Bisqwit #Compiler #Tutorial

Optimizing Trees — How to Create a Compiler part 2/5 — Simple optimizations to a program in an AST

Trying Zig Part 1

Discussion: Making Programming Language Parsers, etc (Q&A is in separate video).

The New Face of America: Inside the Second Great Depression

The Professor Who Taught People How To Think (1962)

Coding Adventure: Software Rasterizer

Let's Create a Compiler (Pt.1)

Something is jamming GPS over Europe. Here's what we found

Keynote: After the AI Hype – What’s Real, and What’s Next - Richard Campbell - 2026

Remember SCANTRON? How did that work?

Building the PERFECT Linux PC with Linus Torvalds

Emulating a CPU in C++ (6502)
![Building a Parser from scratch. Lecture [1/18]: Tokenizer | Parser](https://i.ytimg.com/vi/4m7ubrdbWQU/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBM971plCYXAcBXFzZ8f5QmVL28jw)
Building a Parser from scratch. Lecture [1/18]: Tokenizer | Parser

You Know This Song (but the Orchestra Doesn’t) | Jacob Collier & VSO School of Music Orchestra | TED

Billionaire's WARNING: I'm SELLING. The Crash Is Already Here!

Professor Jiang: World War 3 Is About To Begin, Let Me Explain!

JANITOR vs THE BIGGEST GUYS IN THE GYM. They Didn’t Expect THAT

How to Actually Learn C (2027 Edition)

Parsing Explained - Computerphile

