From cde525f7e0bded621b0c3f39dfbbc5f49e067dac Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 2 Oct 2009 23:47:02 +0000 Subject: [PATCH] Docuemented some precedence rules (going to target a more normalized parser). --- Cycript.y | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Cycript.y b/Cycript.y index b1d2230..4b90f42 100644 --- a/Cycript.y +++ b/Cycript.y @@ -326,6 +326,19 @@ int cylex(YYSTYPE *lvalp, cy::location *llocp, void *scanner); %type SelectorList %type VariadicCall +%left "*" "/" "%" +%left "+" "-" +%left "<<" ">>" ">>>" +%left "<" ">" "<=" ">=" "instanceof" "in" +%left "==" "!=" "===" "!==" +%left "&" +%left "^" +%left "|" +%left "&&" +%left "||" + +%right "=" "*=" "/=" "%=" "+=" "-=" "<<=" ">>=" ">>>=" "&=" "^=" "|=" + %nonassoc "if" %nonassoc "else" -- 2.45.2