Logiweb(TM)

7.1.4.1 Prefix, infix, and suffix

Prev Up Next Page 133 of 800 Search internet


We divide constructs into four classes depending on whether or not they start with a double quote and whether or not they end with a double quote. We assign the fixity classes 'prefix', 'infix', 'suffix', and 'closed' to these four possibilities. Some example read:

Prefix  if " then " else "
Infix   " + "
Suffix  " factorial
Closed  ( " )

The fixity classes are defined thus:

Prefix
A construct is a prefix construct if it ends with a quote but does not start with a quote.
Suffix
A construct is a suffix construct if it starts with a quote but does not end with a quote.
Infix
A construct is an infix construct if it starts and ends with a quote.
Closed
A construct is a closed construct if it neither starts nor ends with a quote.

Charge has no effect on closed constructs. By convention, all closed constructs should have charge zero and be kept in a charge section by themselves rather than cluttering up non-zero charge sections by such constructs.

Charge inversion only occurs when prefix constructs occur after infix constructs and when suffix constructs occur before infix constructs.

Prev Up Next Page 133 of 800 Search logiweb.eu

Copyright © 2010 Klaus Grue, GRD-2010-01-05