The full POP-11 has some 21 different types of data object, but we will be concerned with just four: numbers, words, booleans, and lists. Here are some examples of each type:
66 9987679 -66 0 3.14159 -22.55
10
, 12345
,
or -66
,
or they may
be decimal numbers like
2.13
or -55.55
.
"cat" "ninety" "if" "HI" "hello_there" "MI5"
"hello there"
is not a legal POP-11 word. The underline symbol _
is taken to be a letter, so "hello_there"
is a legal POP-11
word.
<true> <false>
[The cat sat on the mat] [1 Acacia Avenue]
[name [Joe Bloggs] age 33]
"The" "cat" "sat" "on" "the" "mat"
(when a word is inside a list the surrounding quote marks are
omitted). The second example is a list comprising a number followed by two
words. The third example has four elements: a word "name"
,
a list [Joe Bloggs]
,
a word
"age"
and a number 33
.