Premium Only Content

Compiler From Scratch: Phase 1 - Tokenizer Generator 006A: Bug fix then getting NFA/DFA from config.
Streamed on 2024-08-23 (https://www.twitch.tv/thediscouragerofhesitancy)
Zero Dependencies Programming!
Interrupted stream today. My UPS started popping, so I terminated rather abruptly to troubleshoot that before everything went down. We were back online in minutes. There is a part B.
Starting off the day with a bug from the week before is a little rough. I didn't even remember what the bug was. That's a drawback to once-a-week programming projects. But we dug in, and with an excess of print statements we figured it out, no thanks to gdb. I just needed to initialize a pointer to null.
With that out of the way we quickly gathered the token names into a unique list so we would have a unique TokenID/TokenName mapping. Then it didn't take long to go through each rule, compute the NFA from the pattern, and mash all the small NFAs into a single NFA. With a single NFA in hand it was trivial to get the DFA for the whole thing.
This is where we had to break while I checked out my UPS.
-
1:08:26
Sarah Westall
5 hours agoSuicide Pacts forming in Youth Social Media Groups - Discord, Reddit, TikTok w/ John Anthony
51.5K12 -
2:25:31
vivafrei
15 hours agoEp. 281: Charlie Kirk; Routh Trial; Charlotte Train; Bolsanaro Defense; SCOTUS & MORE!
126K182 -
2:55:38
Turning Point USA
6 hours agoWASHINGTON D.C. PRAYER VIGIL FOR CHARLIE KIRK
74K31 -
35:54
The Mel K Show
6 hours agoMel K & Tim James | Healing is an Inside Job | 9-14-25
45.8K4 -
3:06:33
IsaiahLCarter
9 hours ago $5.19 earnedCharlie Kirk, American Martyr (with Mikale Olson) || APOSTATE RADIO 028
58.7K7 -
16:43
Mrgunsngear
13 hours ago $4.65 earnedKimber 2K11 Pro Review 🇺🇸
36.9K14 -
13:40
Michael Button
1 day ago $1.89 earnedThe Strangest Theory of Human Evolution
37K17 -
10:19
Blackstone Griddles
1 day agoMahi-Mahi Fish Tacos on the Blackstone Griddle
26.1K3 -
23:51
Jasmin Laine
1 day ago“Stop Wasting My Time!”—Trump's BRUTAL WARNING To Canada As Poilievre ROASTS CBC LIVE
20.1K28 -
9:54
Millionaire Mentor
1 day agoNBC Host EXPOSES JB Pritzker For Saying This About Trump
12.8K10