X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/7ac075c21af5d61914ae3b7efbf8e55e8aa8bc70..75b0a45730c047dc8bf77060f4fade2488e073fa:/Cycript.l?ds=sidebyside diff --git a/Cycript.l b/Cycript.l index 66f38ce..dd6e204 100644 --- a/Cycript.l +++ b/Cycript.l @@ -187,7 +187,9 @@ Escape \\[\\'"bfnrtv]|\\0|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\\n "transient" L C yylval->word_ = new CYWord("transient"); return tk::Transient; "volatile" L C yylval->word_ = new CYWord("volatile"); return tk::Volatile; -[a-zA-Z$_][a-zA-Z$_0-9]* yylval->identifier_ = new CYIdentifier(apr_pstrmemdup(yyextra->pool_, yytext, yyleng)); L C return tk::Identifier; +"each" L C yylval->word_ = new CYIdentifier("each"); return tk::Each; + +[a-zA-Z$_][a-zA-Z$_0-9]* yylval->identifier_ = new CYIdentifier(apr_pstrmemdup(yyextra->pool_, yytext, yyleng)); L C return tk::Identifier_; (\.[0-9]+|(0|[1-9][0-9]*)(\.[0-9]*)?){Exponent}? yylval->number_ = new CYNumber(strtod(yytext, NULL)); L C return tk::NumericLiteral;