more token types

This commit is contained in:
uan
2026-02-02 19:34:10 +01:00
parent 38504582ae
commit fbae7bc5d5
4 changed files with 99 additions and 24 deletions

9
main.v
View File

@@ -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)
}