Literals
Number literals
- Integers :
255,0255,0xff,0o377,0b11111111 - Floating-point :
0.25,.25,00.250,0.25e0,2.5e-1,0.025e1
Character literals
- Unicode characters :
'あ'->12354 - Characters sequence :
'Hello'->111 108 108 101 72
Escape sequences
\a-> 7\b-> 8\e-> 27\f-> 12\n-> 10\r-> 13\t-> 9\v-> 11\\-> 92\'-> 39\"-> 34\nnn-> The byte whose numerical value is given by nnn interpreted as an octal number.\xhh-> The byte whose numerical value is given by hh interpreted as a hexadecimal number.\uhhhh-> Unicode code point below 10000 hexadecimal.\Uhhhhhhhh-> Unicode code point where h is a hexadecimal digit.
String literals
"Hello"-> Itallot6 cells. It ends with '\0'.
Identifier literals
$(identifier)
This is a unique unsigned integer value.
It used when declaring subroutines, variables, structures, etc.
Control keywords, built-in operators, literals cannot become identifiers.