C_generator can call raw function pointers now

This commit is contained in:
Nathan Braswell
2017-01-28 00:09:13 -05:00
parent dad0f780bb
commit 754ff41226
5 changed files with 30 additions and 26 deletions

View File

@@ -60,7 +60,9 @@ obj lexer (Object) {
fun add_regex(newOne: *char) {
regs.add(util::make_pair(string::string(newOne), regex::regex(newOne)))
}
fun set_input(in: string::string) {
fun set_input(in: ref string::string) {
position = 0
line_number = 1
input = in
}
fun next(): symbol::symbol {