Version 1 (modified by jonathan, 4 years ago) (diff) |
---|
Core Types in Olivine
text
Text is just that, text. You string a line of characters together and wrap them in a pair of double-quotes. In fact, in most languages this type is called string. Here is an example of text:
"Hello World!"
whole number
Whole numbers are numbers without fractions. They can be positive or negative but cannot have a decimal point.
list
A list is a type that contains multiple instances of some other type. All the items in the list must be the same type. Here is a list of text for example:
[ "First item" "Second item" "Third item" ]
Lists can also be expressed on a single line using a comma separator, for example:
[ "First item", "Second item", "Third item" ]