Literals
Integers
Decimal
12
Binary
\b101
Hexadecimal
\xFF
Decimals
2.718
Blocks
Blocks are fixed-length series of bytes. A block with a single character resolves to an integer.
'abcd'
'A' == 65
'霧' == 38695
Sequences
Sequences are variable-length series of bytes.
"hello, world"
Escape Codes
Escape codes consume one or more string characters to insert a string literal.
Multi-character escape codes may be terminated with a semicolon.
print "\"Hello world!\""
print "\x2f47;100%"
| Escape | Usage |
|---|---|
| Character | \" \\ |
| Tab | \t |
| Line | \n |
| Decimal | \192\168\0\1 |
| Binary | \b1000 |
| Hexadecimal | \x30 |