Implement Phase 8.9: Remove transparency system and add weak reference nullification
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
@ -516,9 +516,13 @@ impl NyashParser {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// DOTがない場合: from Parent() 形式 - 透明化システム
|
||||
// 🔥 Pack透明化: Parent名をmethod名として使用
|
||||
parent.clone()
|
||||
// DOTがない場合: from Parent() 形式 - 透明化システム廃止
|
||||
// Phase 8.9: 明示的birth()構文を強制
|
||||
let line = self.current_token().line;
|
||||
return Err(ParseError::TransparencySystemRemoved {
|
||||
suggestion: format!("Use 'from {}.birth()' instead of 'from {}()'", parent, parent),
|
||||
line,
|
||||
});
|
||||
};
|
||||
|
||||
// 引数リストをパース
|
||||
|
||||
@ -77,6 +77,9 @@ pub enum ParseError {
|
||||
#[error("🚨 Infinite loop detected in parser at {location} - token: {token:?} at line {line}")]
|
||||
InfiniteLoop { location: String, token: TokenType, line: usize },
|
||||
|
||||
#[error("🔥 Transparency system removed: {suggestion} at line {line}")]
|
||||
TransparencySystemRemoved { suggestion: String, line: usize },
|
||||
|
||||
#[error("Tokenize error: {0}")]
|
||||
TokenizeError(#[from] TokenizeError),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user