Fix ModuloBox E0046 error and add null literal support

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-15 07:29:52 +00:00
parent 426571db5e
commit aae81ec4d5
9 changed files with 205 additions and 1 deletions

View File

@ -16,6 +16,7 @@ pub enum TokenType {
FLOAT(f64), // 浮動小数点数サポート追加
TRUE,
FALSE,
NULL, // null リテラル
// キーワード
BOX,
@ -417,6 +418,7 @@ impl NyashTokenizer {
"or" => TokenType::OR,
"true" => TokenType::TRUE,
"false" => TokenType::FALSE,
"null" => TokenType::NULL,
_ => TokenType::IDENTIFIER(identifier),
}
}