Logiweb(TM)

7.1.3.5 Unary minus

Prev Up Next Page 127 of 800 Search internet


Consider the following lgs source text:

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

In this case, the body reads:

[- 2] + 3

The understood parentheses end where they end because binary plus x + y has greater charge than unary minus.

Exercise: Enter understood parentheses in the following constructs:

   2 + + + 3
   2 + - + 3

For solutions, see next page.

Prev Up Next Page 127 of 800 Search logiweb.eu

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