Prev Up Next
Go backward to 2.7.2 Mixfix Parsing of Terms in a Module
Go up to 2.7 Parsing, Bubbles and Meta-Parsing
Go forward to 2.7.4 Precedence and Gathering

2.7.3 Parsing Terms in the Extended Signature of a Module

In BINARY-NAT it is possible to reduce the following terms.

  Maude> red ((1 0) + (1 0)) * (1 1) .
  result Bits: 1 1 0 0

  Maude> red ((1 0) > 1) and ((1 1) > (1 0)) .
  result Bool: true

  Maude> red (1).Bit * 0 .
  result Bit: 0

  Maude> red (1 0) + (1 0) + (1 0) .
  result Bits: 1 1 0

But, parentheses, logical operators such as and, sort tests, and qualification operators are not a proper part of the module. These structures belong to the so-called extended signature of a module. That is, the process of grammar generation from the user-defined signature adds automatically more information than that strictly contained in the signature. From the user's viewpoint, the main structures added in the extended signature of a module are:


Prev Up Next