Files
hakorune/apps/std/string_std.nyash
Tomoaki e323120c59 phase15: update CLAUDE.md with Phase 15 enhancements from AGENTS.md
- Add JIT Self-Host Quickstart section for Phase 15
- Include important flags reference (plugins, parsers, debugging)
- Add Codex async workflow documentation for parallel tasks
- Update test execution with Phase 15 smoke tests
- Improve build time notes (JIT vs LLVM)
- Align with current Phase 15 progress and tooling

🎉 Bootstrap (c0→c1→c1') test confirmed working\!

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-05 15:18:13 +09:00

31 lines
831 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// nyashstd.string P0 scaffold (JIT-only)
// NOTE: This is a minimal placeholder to establish file layout and ny_plugins mapping.
// Methods are intentionally simple to avoid relying on NyRT intrinsics.
static box StdString {
init { }
// Return length estimate for ASCII (placeholder: returns input length via naive loop)
length(s) {
// naive count; parser subset-safe
let i = 0
// TODO: real iteration when string iteration is available
return 0
}
// concat placeholder: return second argument as a stub
concat(a, b) { return b }
// slice placeholder: return input as-is
slice(s, begin, end) { return s }
// equals placeholder: always false for now
equals(a, b) { return 0 }
// indexOf placeholder: not found
indexOf(haystack, needle) { return -1 }
toString(s) { return s }
}