Bugfixes, range(start,end,step), and beginning work on lexer and symbol

This commit is contained in:
Nathan Braswell
2015-06-28 20:25:27 -04:00
parent 48683889da
commit ce6c8241fb
19 changed files with 248 additions and 48 deletions

16
tests/test_lexer.krak Normal file
View File

@@ -0,0 +1,16 @@
import lexer:*
import regex:*
import string:*
import symbol:*
import io:*
fun main(): int {
var lex.construct(): lexer
lex.set_input(string("aaaatesta"))
lex.add_regex(regex("a+"))
lex.add_regex(regex("test"))
println(lex.next().to_string())
println(lex.next().to_string())
return 0
}