From: Jay Freeman (saurik) Date: Wed, 21 Oct 2009 06:21:15 +0000 (+0000) Subject: Added @ token for E4X. X-Git-Tag: v0.9.432~300 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/ac9a5ce1cc17b60021bba037c5d5513ba44a0122?ds=inline Added @ token for E4X. --- diff --git a/Cycript.l b/Cycript.l index 516c813..c2142bd 100644 --- a/Cycript.l +++ b/Cycript.l @@ -119,6 +119,8 @@ RegularExpressionStart_ {RegularExpressionBody}{RegularExpressionEnd_} } else L } +"@" L C return tk::At; + "&" L C return tk::Ampersand; "&&" L C return tk::AmpersandAmpersand; "&=" L C return tk::AmpersandEqual; diff --git a/Cycript.y b/Cycript.y index 70022e7..14acf8d 100644 --- a/Cycript.y +++ b/Cycript.y @@ -116,6 +116,8 @@ int cylex(YYSTYPE *lvalp, cy::location *llocp, void *scanner); %parse-param { CYDriver &driver } %lex-param { void *scanner } +%token At "@" + %token Ampersand "&" %token AmpersandAmpersand "&&" %token AmpersandEqual "&="