3 ms·
Yep! As mentioned in the comments, the logic you get this way isn't exactly the same as Thompson's, but it's very close. You're welcome. FWIW I drafted a lot o
by abecedarius 8y ago
Yep! As mentioned in the comments, the logic you get this way isn't exactly the same as Thompson's, but it's very close. You're welcome.
FWIW I drafted a lot of variations while messing with this: https://github.com/darius/sketchbook/tree/master/regex https://github.com/darius/sketchbook/tree/master/regex (some of this code is incorrect) and https://github.com/darius/sketchbook/tree/master/lex https://github.com/darius/sketchbook/tree/master/lex.