more token types
This commit is contained in:
9
main.v
9
main.v
@@ -1,7 +1,10 @@
|
||||
module main
|
||||
|
||||
import os
|
||||
|
||||
fn main() {
|
||||
content := "real x = 6.50;"
|
||||
println("for string : \"" + content + "\"")
|
||||
lex(content)
|
||||
content := os.read_file("test.one") or { return }
|
||||
println("---------\n" + content + "---------")
|
||||
tokens := lex(content) or { return }
|
||||
print_toks(tokens)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user