Logiweb(TM)

7.1.3.3 Associativity

Prev Up Next Page 125 of 800 Search internet


Constructs with even (odd) charge are pre-(post-)associative. A preassociative construct is left associative in text that runs left to right, right associative in text that runs right to left, top associative in text that runs top to bottom, and counterclockwise associative in text written in clockwise spirals. As an example, consider the following lgs source text:

   ""P my page
   ""D 0 ""n 2 ""n 3 ""n 4
   ""D 6
   " + "
   " - "
   ""B
   2 - 3 + 4

Using blue brackets for understood parentheses, the body reads:

[2 - 3] + 4

In contrast, consider the following lgs source text:

   ""P my page
   ""D 0 ""n 2 ""n 3 ""n 4
   ""D 7
   " + "
   " - "
   ""B
   2 - 3 + 4

In this case, the body reads:

2 - [3 + 4]

Prev Up Next Page 125 of 800 Search logiweb.eu

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