In a pure prefix expression (such as those in Example 2.1 on p. 29), each operator appears immediately before its own operands, but it may appear after some other operands. Similarly, in a pure postfix expression (such as those in Example 2.2), each operator appears immediately after its own operands, but possibly before others. It is not possible to represent every expression with all operators before (or after) all operands. For example, the syntax tree can be represented in postfix and in prefix as:* / \ / \ / \ + + / \ / \ a b c d a b + c d + * (postfix)But there's no way to indicate the right grouping with all operators before, or all operators after, all of the operands. Mike O'D. |
to: