- 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.
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
// nyashstd拡張テスト - 基本型作成関数
|
|
|
|
using nyashstd
|
|
|
|
static box Main {
|
|
main() {
|
|
print("🌟 nyashstd拡張テスト開始")
|
|
|
|
// 既存のstring.upper()テスト
|
|
local text = string.upper("hello")
|
|
print("string.upper(): " + text)
|
|
|
|
// 新機能: string.create()テスト
|
|
local created_string = string.create("created text")
|
|
print("string.create(): " + created_string)
|
|
|
|
// 新機能: integer.create()テスト
|
|
local num = integer.create(42)
|
|
print("integer.create(): " + num)
|
|
|
|
// 新機能: bool.create()テスト
|
|
local flag = bool.create(true)
|
|
print("bool.create(): " + flag)
|
|
|
|
// 新機能: array.create()テスト
|
|
local arr = array.create()
|
|
print("array.create(): " + arr)
|
|
|
|
// 新機能: console.log()テスト
|
|
console.log("Hello from console.log()!")
|
|
|
|
print("✅ nyashstd拡張テスト完了")
|
|
}
|
|
} |