sopt_prec

sopt_prec:=
cbind | is NAME
cbind | epsilon

This attribute is used to specify the precedence of a C expression so that the code generator can place parenthesis around it if it is embedded in a context with higher precedence.

Felix automatically calculates the predence for tightly packed encodings of all C operators; for example there is no need to specify the precedence of "$1+$2".

Otherwise, if the precedence is omitted, the expression is assumed to be low, and parenthesis is always added.

The precedence must be one of the following identifiers:

  1. atom
  2. primary
  3. postfix
  4. unary
  5. cast
  6. pm
  7. mult
  8. add
  9. shift
  10. rel
  11. eq
  12. band
  13. bxor
  14. bor
  15. and
  16. xor
  17. or
  18. cond
  19. assign
  20. comma
  21. expr