The Language Pt. 2

EXPRESSIONS

There are 9 types of expressions.
  1. Atomic
  2. Evaluation
  3. Lambda Abstraction
  4. List
  5. Tuple
  6. Set
  7. Selector-set
Unforunately it isn't presently possible to effectively work with the last four types of expressions.

ATOMIC EXPRESSIONS

An atomic expression is just an atom by itself.

EVALUATION EXPRESSIONS

An evaluation is any expression (the function) followed by a bracketed list of expressions. An operator with arguments counts as an evaluation. In this case the operator counts as the function. Some examples are:

QUANTIFICATION EXPRESSIONS

A quantification is a quantifier followed by an atom, followed by an expression in brackets. The quantifiers are summarised in the following table.
QuantifierMeaning
Universal Quantifier
Existential Quantifier
∃!Unique Existential Quantifier
ιSelector
Some examples of Quantification Expressions are:

LAMBDA ABSTRACTION EXPRESSIONS

A lambda abstraction is the lambda symbol followed by a non-empty list of atoms, followed by an expression in brackets. Some examples are

LIST

A List is a list of expressions in square brackets. Some examples are:

TUPLE

A tuple is a list of two or more expressions in square brackets. Some examples are:

SET

A set is a comma-separated list of expressions in curly brackets. Some examples are

SELECTOR-SET

A selector set is an atom and expression separated by a stick with a pair of curly brackets. Some examples are

E-mail: hermes_t@users.sourceforge.net

Sourceforge project summary page: https://sourceforge.net/projects/hermetica/

Valid XHTML 1.0! Valid CSS! Get Firefox