From ac9a5ce1cc17b60021bba037c5d5513ba44a0122 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 21 Oct 2009 06:21:15 +0000 Subject: [PATCH] Added @ token for E4X. --- Cycript.l | 2 ++ Cycript.y | 2 ++ 2 files changed, 4 insertions(+) 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 "&=" -- 2.49.0