Next: Numbers, Up: Data constants [Contents][Index]
There are four syntactic forms for atoms. The reserved words are not atoms and if you accidentally use a reserved word as an atom the parser will produce a syntax error.
_" and alphanumeric characters.
percy_smith_2 semester_1
|-/+*<=>#@$\^&~:.?
For example:
@<=
'" (single quote).
Single quote can be included in the sequence by writing the quote twice.
"\" indicates an escape sequence,
where the escape characters are case insensitive.
The possible escape characters are:
newlineMeaning: Continuation ^Meaning: Same as d.^characterMeaning: Control character. ddMeaning: A two digit octal number. aMeaning: Alarm ( ASCII = 7).bMeaning: Backspace ( ASCII = 8).cMeaning: Continuation. dMeaning: Delete ( ASCII = 127).eMeaning: Escape ( ASCII = 27).fMeaning: Formfeed ( ASCII = 12).nMeaning: Newline ( ASCII = 10).oddMeaning: A two digits octal number. rMeaning: Return ( ASCII = 13)sMeaning: Space ( ASCII = 32).tMeaning: Horizontal tab ( ASCII = 9).vMeaning: Vertical tab ( ASCII = 11).xddMeaning: A two digit hexadecimal number.
Here are a few examples of quoted atoms.
'hi!' 'they''re' '\n'