Phase 3 Complete: Parser extended with weak field support

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-12 20:27:20 +00:00
parent 0f0edeeb9c
commit 56af6c612f
5 changed files with 92 additions and 3 deletions

View File

@ -48,6 +48,7 @@ pub enum TokenType {
NOT, // not (否定演算子)
OVERRIDE, // override (明示的オーバーライド)
FROM, // from (親メソッド呼び出し)
WEAK, // weak (弱参照修飾子)
// 演算子 (長いものから先に定義)
ARROW, // >>
@ -406,6 +407,7 @@ impl NyashTokenizer {
"not" => TokenType::NOT,
"override" => TokenType::OVERRIDE,
"from" => TokenType::FROM,
"weak" => TokenType::WEAK,
"and" => TokenType::AND,
"or" => TokenType::OR,
"true" => TokenType::TRUE,