Changes between Initial Version and Version 1 of olivine/dsl/types/core


Ignore:
Timestamp:
May 21, 2020 9:39:09 PM (4 years ago)
Author:
jonathan
Comment:

Introduce core types

Legend:

Unmodified
Added
Removed
Modified
  • olivine/dsl/types/core

    v1 v1  
     1= Core Types in Olivine =
     2== text ==
     3Text 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 ==
     10Whole numbers are numbers without fractions.  They can be positive or negative but cannot have a decimal point.
     11
     12== list ==
     13A 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
     23Lists can also be expressed on a single line using a comma separator, for example:
     24{{{
     25[ "First item", "Second item", "Third item" ]
     26}}}