Bugfixes, range(start,end,step), and beginning work on lexer and symbol
This commit is contained in:
16
tests/test_lexer.krak
Normal file
16
tests/test_lexer.krak
Normal 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user