When I was trying to grok that stuff way back when, I wrote an NFA/DFA library in Lua, and then wrote utility functions onto it to add things like kleene star, etc. Before finally writing the NFA->DFA and then state reduction (Hopcroft) implementations. That route helped me.
1
1
IIRC I learned it all from the Dragon book ( en.wikipedia.org/wiki/Compilโฆ ) but this was seven or eight years ago, so there might be even better resources now.
May 8, 2018 ยท 8:29 AM UTC
1
1

