Logo
Explore Help
Register Sign In
tomoaki/hakorune
1
0
Fork 0
You've already forked hakorune
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
92b3c2afb51e63226d99e5ff97f7a4366dbf7ead
hakorune/apps/tests/phase188_string_append_literal.hako

19 lines
335 B
Plaintext
Raw Normal View History

feat(joinir): Phase 188 StringAppend support in Pattern2/4 - Extended Pattern2/4 whitelist to accept StringLiteral updates - CarrierUpdateEmitter now emits JoinIR for string append - Selective Fail-Fast: accept safe patterns, reject complex Changes: - pattern2_with_break.rs: StringLiteral whitelist - pattern4_with_continue.rs: StringLiteral whitelist - carrier_update_emitter.rs: StringLiteral JoinIR emission Tests: - phase188_string_append_char.hako - phase188_string_append_literal.hako - 10/10 carrier_update_emitter tests PASS 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 01:09:54 +09:00
// Phase 188: String append with literal
// Pattern: s = s + "y" (StringAppendLiteral)
// Pattern 4: Loop with continue
static box SAppendLit {
method main() {
local s = ""
local i = 0
loop(i < 5) {
i = i + 1
if i > 3 {
continue
}
s = s + "y"
}
print(s) // Expected: "yyy"
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 37ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API