- PREC_BAD = 0,
- PREC_COMMA, /* , left to right */
- PREC_ASSIGN, /* = += -= *= /= %= <<= >>= &= ^= |= right to left */
- PREC_COND, /* ?: right to left */
- PREC_LOG_OR, /* || left to right */
- PREC_LOG_AND, /* && left to right */
- PREC_BIT_OR, /* | left to right */
- PREC_BIT_XOR, /* ^ left to right */
- PREC_BIT_AND, /* & left to right */
- PREC_EQ, /* == != left to right */
- PREC_CMP, /* < <= > >= left to right */
- PREC_SHF, /* << >> left to right */
- PREC_PLUS, /* + - left to right */
- PREC_MUL, /* * / % left to right */
- PREC_UNARY, /* ! ~ ++ -- + - (type) * & sizeof right to left */
- PREC_ACCESS, /* () [] -> . left to right */
- PREC_PRIM, /* primary */
+ PREC_BOTTOM = 0,
+ PREC_COMMA = 2, /* , left to right */
+ PREC_ASSIGN = 4, /* = += -= *= /= %= <<= >>= &= ^= |= right to left */
+ PREC_COND = 6, /* ?: right to left */
+ PREC_LOG_OR = 8, /* || left to right */
+ PREC_LOG_AND = 10, /* && left to right */
+ PREC_BIT_OR = 12, /* | left to right */
+ PREC_BIT_XOR = 14, /* ^ left to right */
+ PREC_BIT_AND = 16, /* & left to right */
+ PREC_EQ = 18, /* == != left to right */
+ PREC_CMP = 20, /* < <= > >= left to right */
+ PREC_SHF = 22, /* << >> left to right */
+ PREC_PLUS = 24, /* + - left to right */
+ PREC_MUL = 26, /* * / % left to right */
+ PREC_UNARY = 28, /* ! ~ ++ -- + - (type) * & sizeof right to left */
+ PREC_ACCESS = 30, /* () [] -> . left to right */
+ PREC_PRIM = 32, /* primary */
+ PREC_TOP = 34