language · language ·
Literals and escapes
Yeho has text, character, integer, floating-point, boolean, and null literals with explicit escape sequences.
Use literals for small values that are obvious at the point of use. Give repeated domain values a named field or function.
"text"
'c'
42
3.14
6.02e23
true
false
nullStatus: stable
Literal forms
Use literals for small values that are obvious at the point of use. Give repeated domain values a named field or function.
cpu · language · type checked
class Pilot { }
text greeting = "hello\nworld"
char initial = 'Y'
int count = 42
float ratio = 1.5
bool ready = true
Pilot? selected = null
project.mech
manifestVersion = "2"
package = "api.example.language__literals"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
Notes and source
Supported escapes include \\, \n, \r, \t, \0, escaped quotes, and Unicode \u{...}.
Interpolated text and hex, binary, or separator numeric literals are not admitted.
yeho/docs/language/language-core.md §2.6-2.9; lexer literal fixtures