From: Jay Freeman (saurik) Date: Mon, 23 Nov 2015 11:39:12 +0000 (-0800) Subject: Configure a better trade-off in lexer compression. X-Git-Tag: v0.9.590~295 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/8c191568adc897a5ac3ec251e17a48a2c9deb65e Configure a better trade-off in lexer compression. --- diff --git a/Cycript.l.in b/Cycript.l.in index 62fbc65..85db0e8 100644 --- a/Cycript.l.in +++ b/Cycript.l.in @@ -139,12 +139,15 @@ int H(char c) { %option 8bit %option backup %option batch -%option full %option never-interactive %option pointer %option reentrant %option stack +%option full +%option ecs +%option align + Escape \\[\\'"bfnrtv]|\\0|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\\n IdentifierStart [a-zA-Z$_] @@ -401,7 +404,7 @@ XMLName {XMLNameStart}{XMLNamePart}* (\.[0-9]+|(0|[1-9][0-9]*)(\.[0-9]*)?)([eE][+-]?[0-9]+)? L C I(number, Number(strtod(yytext, NULL)), tk::NumericLiteral, hi::Constant); (\.[0-9]+|(0|[1-9][0-9]*)(\.[0-9]*)?)[eE][+-]?{IdentifierPart}* L E("invalid exponent") -(\.?[0-9]|(0|[1-9][0-9]*)?\.){IdentifierPart}* L E("invalid number") +(\.?[0-9]|(0|[1-9][0-9]*)\.){IdentifierPart}* L E("invalid number") \"([^"\\\n]|{Escape})*\"|'([^'\\\n]|{Escape})*' L C { char *value(A char[yyleng]);