feat: Prepare for code modularization and cleanup
- 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.
This commit is contained in:
18
local_tests/test_simple_loop.nyash
Normal file
18
local_tests/test_simple_loop.nyash
Normal file
@ -0,0 +1,18 @@
|
||||
// Test simple loop for WASM compilation
|
||||
static box Main {
|
||||
init { counter, result }
|
||||
|
||||
main() {
|
||||
me.counter = 0
|
||||
me.result = 0
|
||||
|
||||
// Simple loop that should generate Jump/Branch instructions
|
||||
loop(me.counter < 5) {
|
||||
me.result = me.result + me.counter
|
||||
me.counter = me.counter + 1
|
||||
}
|
||||
|
||||
print(me.result)
|
||||
return me.result
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user