X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=scripts%2Fgen_calc_oper.php;h=ab71f62c2542ce98794a89186cae4cf5e958e17b;hp=b6e62aaff5a47e9d74a3a059c79b93fb4bcdbbda;hb=fb8f7887c289ae74d6e8dd85d55ae09e6796e890;hpb=42f44eb5bf4ecd36e26e051fada79d861d0f92d2 diff --git a/scripts/gen_calc_oper.php b/scripts/gen_calc_oper.php index b6e62aa..ab71f62 100644 --- a/scripts/gen_calc_oper.php +++ b/scripts/gen_calc_oper.php @@ -35,18 +35,33 @@ static inline int psi_calc_oper(token_t op1, token_t op2) switch (op1) { $ops1) : ?> - + case PSI_T_: switch (op2) { $ops2) : ?> + $prec2) : + $ret = 1; + else : + $ret = -1; + endif; + ?> + - case PSI_T_: - return $prec2?1:-1)?>; + return ; + + + + case PSI_T_: + return ; + default: assert(0); break;