Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 816 Bytes

literals.md

File metadata and controls

60 lines (38 loc) · 816 Bytes

Literals

Home


Literals are any kind of self-contained value, like strings and numbers.

Booleans

Booleans are reserved names and are written in capital or lowercase. All forms below are valid:

true
false
True
False

Strings

Strings can use double or single quotes as delimiters:

"this string uses double quotes"

'and this string uses single quotes'

Strings also can span many lines:

"Lorem Ipsum is simply dummy string of the printing and typesetting industry.

Lorem Ipsum has been the industry's standard dummy string ever since the 1500s,

when an unknown printer took a galley of type and scrambled it to make a type specimen book."

Integers

0
1
-7
+99

Floats

Floats support scientific notation:

-56.2e-5
+0.33e+2
0.7e5