Logiweb(TM)

7.1.4.3 Ambiguous minus

Prev Up Next Page 135 of 800 Search internet


Consider the following lgs source text:

   ""P my page
   ""D 0 ""n a ""n b
   ""D 6
   - "
   " - "
   " -
   ""B
   a - - b

If lgc(1) is run on the lgs source above, it will respond with an Ambiguous source text error message. The problem is that the body can be interpreted as

[a -] - b

or

a - [- b]

Thus, the body has two essentially different interpretations. In the first interpretation, the first minus sign is part of construct number three of the page (suffix minus). In the second interpretation, the first minus sign is part of construct number two of the page (infix minus). Charge rules cannot disambiguate in cases where a character of a file can be interpreted as belonging to two, different constructs.

Prev Up Next Page 135 of 800 Search logiweb.eu

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