- Archive old documentation and test files to `docs/archive/` and `local_tests/`. - Remove various temporary and old files from the project root. - Add `nekocode-rust` analysis tool and its output files (`nekocode/`, `.nekocode_sessions/`, `analysis.json`). - Minor updates to `apps/chip8_nyash/chip8_emulator.nyash` and `local_tests` files. This commit cleans up the repository and sets the stage for further code modularization efforts, particularly in the `src/interpreter` and `src/parser` modules, based on recent analysis.
43 lines
841 B
Plaintext
43 lines
841 B
Plaintext
// Simple Final Demo - Phase 8.7 BoxCall Success
|
|
// Clean demonstration of VM BoxCall functionality
|
|
|
|
print("=== Phase 8.7 VM BoxCall Demo ===")
|
|
|
|
// Test StringBox methods
|
|
local text
|
|
local result
|
|
text = "Hello_World"
|
|
result = text.substring(0, 5)
|
|
print("Substring result:")
|
|
print(result)
|
|
|
|
result = text.concat("_Success")
|
|
print("Concat result:")
|
|
print(result)
|
|
|
|
print("Length:")
|
|
print(result.length())
|
|
|
|
// Test ArrayBox methods
|
|
local arr
|
|
arr = new ArrayBox()
|
|
print("Array length:")
|
|
print(arr.length())
|
|
|
|
// Test Integer methods
|
|
local num
|
|
num = 42
|
|
result = num.toString()
|
|
print("Number to string:")
|
|
print(result)
|
|
|
|
// Test Boolean methods
|
|
local flag
|
|
flag = true
|
|
result = flag.toString()
|
|
print("Boolean to string:")
|
|
print(result)
|
|
|
|
print("=== Success! ===")
|
|
print("VM BoxCall methods working perfectly!")
|
|
print("Ready for real-world applications!") |