csssaz / compilers_project

0 stars 0 forks source link

handmade lex #12

Closed csssaz closed 6 years ago

csssaz commented 7 years ago

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.

csssaz commented 6 years ago

should be fine now