- 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.
32 lines
545 B
Plaintext
32 lines
545 B
Plaintext
// Test script to validate BoxCall fix
|
|
// This should work with both interpreter and VM backends
|
|
|
|
// Test StringBox method calls
|
|
local s
|
|
local len_result
|
|
local str_result
|
|
s = "Hello World"
|
|
len_result = s.length()
|
|
str_result = s.toString()
|
|
|
|
print(len_result)
|
|
print(str_result)
|
|
|
|
// Test IntegerBox method calls
|
|
local num
|
|
local num_str
|
|
local abs_num
|
|
num = 42
|
|
num_str = num.toString()
|
|
abs_num = num.abs()
|
|
|
|
print(num_str)
|
|
print(abs_num)
|
|
|
|
// Test BoolBox method calls
|
|
local flag
|
|
local bool_str
|
|
flag = true
|
|
bool_str = flag.toString()
|
|
|
|
print(bool_str) |