Major implementation by ChatGPT: - Complete JSON v0 Bridge layer with PHI generation for control flow - If statement: Merge PHI nodes for variables updated in then/else branches - Loop statement: Header PHI nodes for loop-carried dependencies - Python MVP Parser Stage-2: Added local/if/loop/call/method/new support - Full CFG guarantee: All blocks have proper terminators (branch/jump/return) - Type metadata for string operations (+, ==, !=) - Comprehensive PHI smoke tests for nested and edge cases This allows MIR generation without Rust MIR builder - massive step towards eliminating Rust build dependency! 🎉 ChatGPTが30分以上かけて実装してくれたにゃ! Co-Authored-By: ChatGPT <noreply@openai.com>
13 lines
191 B
Plaintext
13 lines
191 B
Plaintext
static box Main {
|
|
helper(s) {
|
|
return s.length()
|
|
}
|
|
main(args) {
|
|
local console = new ConsoleBox()
|
|
local n = me.helper("abc")
|
|
console.println("n=" + n)
|
|
return 0
|
|
}
|
|
}
|
|
|