Next: , Previous: Numbers, Up: Syntax

3.2 Atoms

The syntax of Pedro atoms fall into four categories:

  1. A lower case letter followed by any sequence consisting of “_” and alphanumeric characters.


              fred, a12, this_is_an_ATOM
  2. Any combination of the following set of graphic characters.


              ==>, :?, -:-
  3. Any sequence of characters enclosed by single quotes. The character “\” indicates an escape sequence.


              'Fred', 'it\'s', '\n'
  4. ; [] and the open-close parenthesis pair