docs: update README and LanguageRef with backtick strings + QBE backend

This commit is contained in:
2026-06-02 11:36:59 +03:00
parent 70cfa4f721
commit 87e8b08fc8
2 changed files with 28 additions and 8 deletions
+10 -1
View File
@@ -48,12 +48,21 @@ async, await, spawn
### String Literals
```bux
"Hello" // String (UTF-8)
"Hello" // String (UTF-8) — escape sequences: \n \t \r \\ \"
c8"Hello" // *char8 (C string)
c16"Hello" // *char16
c32"Hello" // *char32
`raw literal` // Raw multi-line string — no escape processing
`line 1
line 2
line 3` // Newlines preserved as-is
```
**Backtick raw strings** (`` `...` ``) treat all characters literally:
- `\n` is two characters, not a newline
- Actual newlines in source are preserved in the string
- No way to escape the backtick character itself (use regular strings if needed)
### Number Literals
```bux
42 // int