Gonna checkpoint here at a lot of good progress. Wrote generate_state_automaton, closure, and goto, and they compile and run, though don't work. (they don't crash yet though).

This commit is contained in:
Nathan Braswell
2015-08-04 01:07:33 -04:00
parent be069197ba
commit c987459a77
5 changed files with 106 additions and 6 deletions

View File

@@ -1,7 +1,11 @@
import string
fun null_symbol(): symbol {
var toRet.construct(string::string("$NULL"), false, string::string("$NULL$")): symbol
var toRet.construct(string::string("$NULL$"), false, string::string("$NULL$")): symbol
return toRet
}
fun eof_symbol(): symbol {
var toRet.construct(string::string("$EOF$"), false, string::string("$EOF$")): symbol
return toRet
}