Changeset 859 for cpp/frams


Ignore:
Timestamp:
03/28/19 22:16:39 (6 years ago)
Author:
Maciej Komosinski
Message:

Made operator precedence more standard: conditional (?:) and logical not (!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/framscript.y

    r846 r859  
    4646
    4747%nonassoc ASSIGN_ADD ASSIGN_SUB ASSIGN_MUL ASSIGN_DIV ASSIGN_MOD
    48 %nonassoc PLUSPLUS MINUSMINUS
    49 %left LOGIC_AND LOGIC_OR '!'
     48%nonassoc PLUSPLUS MINUSMINUS
     49%right '?' ':'
     50%left LOGIC_AND LOGIC_OR
    5051%left EQUAL NOT_EQUAL GEQUAL LEQUAL '>' '<'
    5152%left '|' '&' '^'
    5253%left '-' '+'
    5354%left '*' '/' '%'
    54 %left NEG     /* negation--unary minus */
     55%left NEG '!'   /* negation--unary minus */
    5556%left TYPEOF
    5657%left INT_TYPE
Note: See TracChangeset for help on using the changeset viewer.