| 1 | = Core Types in Olivine = |
| 2 | == text == |
| 3 | 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'': |
| 4 | |
| 5 | {{{ |
| 6 | "Hello World!" |
| 7 | }}} |
| 8 | |
| 9 | == whole number == |
| 10 | Whole numbers are numbers without fractions. They can be positive or negative but cannot have a decimal point. |
| 11 | |
| 12 | == list == |
| 13 | 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: |
| 14 | |
| 15 | {{{ |
| 16 | [ |
| 17 | "First item" |
| 18 | "Second item" |
| 19 | "Third item" |
| 20 | ] |
| 21 | }}} |
| 22 | |
| 23 | Lists can also be expressed on a single line using a comma separator, for example: |
| 24 | {{{ |
| 25 | [ "First item", "Second item", "Third item" ] |
| 26 | }}} |