修复了parser解析initexpr模式判断错误的问题。修复标准库改名忘改的问题

This commit is contained in:
2026-02-04 20:34:35 +08:00
parent b4b6d409b5
commit 50ca68b1a4
4 changed files with 128 additions and 20 deletions

View File

@@ -2,3 +2,14 @@ import std.io;
import token {Token, TokenType};
import tokenizer {Tokenizer};
const src := "abc egaD";
const tokenizer := new Tokenizer{src};
const result := tokenizer.TokenizeAll();
for var i := 0; i < result.length(); i += 1
{
const tok := result[i];
io.printf("{}: {}\n", tok.literal, tok.type);
}