Premium Only Content
Compiler From Scratch: Phase 1 - Tokenizer Generator 005: Anchoring, NFA to DFA, and diagrams
Streamed on 2024-08-16 (https://www.twitch.tv/thediscouragerofhesitancy)
Zero Dependencies Programming!
I worked through adding Anchoring support to our Patter-to-NFA converter, then upgraded our NFA output options to include a Graphviz file. The graph based images are very nice for visualization and understanding the NFA.
Then I grabbed some old code from my sandbox and brought it in to convert the NFA into a DFA. There was some modification necessary, but it wasn't too bad. We added the same Graphviz output capability to the DFA. There was some refactoring of both NFA and DFA to bring them more into alignment with each other, and additional changes were needed to support StartOfLine and EndOfLine in the DFA, but overall it wasn't too bad.
There are still some output issues I have with the Graphviz output: the patterns as stored aren't escaped properly for Graphviz, so escaped characters don't render out right, but that is something we'll work on later.
Lastly, we started trying to build the NFAs from our TokenizationDefinition, but there is a very strange bug that I ran into that I didn't have fixed by the end of the stream. Next time.
I did have to trim off the last couple of minutes to fit Rumble's 15GB limit, but you didn't miss anything.
-
LIVE
SpartakusLIVE
1 hour agoTexas FARMBOY turned WZ PRO turned REDSEC HERO turned ARC LOOT GOBLIN
172 watching -
58:40
Donald Trump Jr.
3 hours agoCan California be Golden Again? Interview with Gubernatorial Candidate Steve Hilton | TRIGGERED Ep.293
71.5K56 -
LIVE
AirCondaTv Gaming
5 hours ago $0.14 earnedBattlefield 6: Burn Baby Burn. Like a Raging Inferno
66 watching -
1:06:20
BonginoReport
3 hours agoTrump, Vance “SNUBBED” by Never-Trumper Cheneys - Nightly Scroll w/ Hayley Caronia (Ep.182)
40.7K16 -
3:35:57
SlantRock
3 hours agoBATTLEFIELD REDSEC/ MAYBE ARC RAIDERS AFTER
600 -
LIVE
Astral Doge Plays!
1 hour agoHyrule Warriors: Age of Imprisonment ~LIVE!~ Ganondorf Is a Jerk
74 watching -
1:25:13
Kim Iversen
3 hours agoMKUltra Victims Are SUING — The CIA's Darkest Secret EXPOSED
88.9K44 -
LIVE
GritsGG
5 hours ago#1 Most Warzone Wins 4015+!
83 watching -
16:30
Stephen Gardner
3 hours ago🚨OVAL OFFICE EXPOSES TRUMP TAKEOVER – FILIBUSTER NUKED!
17.5K24 -
LIVE
The Rabble Wrangler
16 hours agoThe Best in the West Dominates Battlefield
33 watching