Convert a regular expression to a finite automaton | Hacker News Reader