ok this brings everything together building one big automata from every regular expression in "hregex.in", using the same idea as lex. I also added one test, and filled the implementation of hregex.cpp.
I tested both lex and hlex outputs on "test.decaf" and they are the same.
the only thing missing are parsing comments! I will add those and more tests soon.
ok this brings everything together building one big automata from every regular expression in "hregex.in", using the same idea as lex. I also added one test, and filled the implementation of hregex.cpp.
I tested both lex and hlex outputs on "test.decaf" and they are the same.
the only thing missing are parsing comments! I will add those and more tests soon.