Back to Browse

Making a Programming Language & Compiler in C: Printing Syntax Trees

333 views
Mar 8, 2023
15:13

I take a detour (seems like we have a lot of those in this series) from working on the grammar stuff to write a function to print out syntax trees. This'll help with debugging in the future, and it presented some interesting challenges and even some Teachable Moments™ as well. Music in this video, in order of appearance: - Xenoblade 2 - Garfont Mercenaries (Night) - Xenoblade 2 - The Decision - Xenoblade 3 - Alfeto Valley (Day) - Boymerang - Soul Beat Runna - Intense - West Side Blues - Steins;Gate - Butterfly Effect Chapters: 00:00 - Introduction 00:50 - Implementation Start!! 03:56 - Preventing Infinite Recursion 07:32 - Fixing Repeated Expansion Prints 09:39 - Explaining What I Actually Did to Fix the Dang Thing 13:57 - Improving the Formatting/Outro

Download

0 formats

No download links available.

Making a Programming Language & Compiler in C: Printing Syntax Trees | NatokHD