Changeset 863


Ignore:
Timestamp:
04/03/19 01:16:33 (6 years ago)
Author:
Maciej Komosinski
Message:

Made operator precedence more javascript-like

File:
1 edited

Legend:

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

    r859 r863  
    4545%token INVALID_NUMBER
    4646
    47 %nonassoc ASSIGN_ADD ASSIGN_SUB ASSIGN_MUL ASSIGN_DIV ASSIGN_MOD
    48 %nonassoc PLUSPLUS MINUSMINUS
     47%left ASSIGN_ADD ASSIGN_SUB ASSIGN_MUL ASSIGN_DIV ASSIGN_MOD
    4948%right '?' ':'
    50 %left LOGIC_AND LOGIC_OR
    51 %left EQUAL NOT_EQUAL GEQUAL LEQUAL '>' '<'
    52 %left '|' '&' '^'
     49%left LOGIC_OR
     50%left LOGIC_AND
     51%left '|'
     52%left '&'
     53%left EQUAL NOT_EQUAL
     54%left GEQUAL LEQUAL '>' '<'
     55%left LSHIFT RSHIFT
    5356%left '-' '+'
    5457%left '*' '/' '%'
    55 %left NEG '!'   /* negation--unary minus */
     58%right NEG '!' PLUSPLUS MINUSMINUS
    5659%left TYPEOF
    5760%left INT_TYPE
Note: See TracChangeset for help on using the changeset viewer.