runner: split modes (mir/vm/llvm/bench) and extract plugin init; interpreter: split objects into ops/methods/fields; VM logs gated; Phi selection minimal fix; CURRENT_TASK updated; remove legacy backups
This commit is contained in:
@ -1,2 +1,5 @@
|
||||
// Simple return test
|
||||
return 42
|
||||
static box Main {
|
||||
main() {
|
||||
return 42
|
||||
}
|
||||
}
|
||||
@ -1,9 +1,19 @@
|
||||
# Simple test without external calls
|
||||
static box Main {
|
||||
init { result }
|
||||
|
||||
main() {
|
||||
me.result = "Simple test"
|
||||
return me.result
|
||||
}
|
||||
}
|
||||
// 簡単なNyashテストプログラム
|
||||
print("🎉 Nyash is working!")
|
||||
print("Everything is Box!")
|
||||
|
||||
// 基本的な演算
|
||||
local a = 10
|
||||
local b = 20
|
||||
local result = a + b
|
||||
print("10 + 20 = " + result.toString())
|
||||
|
||||
// StringBox
|
||||
local greeting = "Hello, Nyash!"
|
||||
print(greeting)
|
||||
|
||||
// ArrayBox
|
||||
local arr = new ArrayBox()
|
||||
arr.push("First")
|
||||
arr.push("Second")
|
||||
print("Array length: " + arr.length().toString())
|
||||
Reference in New Issue
Block a user