From: Jay Freeman (saurik) Date: Fri, 15 Jun 2012 05:10:09 +0000 (-0700) Subject: Re-thread LexSet{Statement,RegExp} to fix division. X-Git-Tag: v0.9.458~7 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/5d660beded5f90cbdc0a6875b1bd74c37ba98294?ds=inline Re-thread LexSet{Statement,RegExp} to fix division. --- diff --git a/Cycript.yy.in b/Cycript.yy.in index aa5f535..866127e 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -1054,7 +1054,7 @@ StatementList StatementListOpt : StatementList { $$ = $1; } - | LexSetRegExp { $$ = NULL; } + | LexSetStatement LexSetRegExp { $$ = NULL; } ; StatementListItem @@ -1318,7 +1318,7 @@ ProgramBody ProgramBodyOpt : ProgramBody { $$ = $1; } - | { $$ = NULL; } + | LexSetStatement LexSetRegExp { $$ = NULL; } ; /* }}} */ @@ -1491,7 +1491,7 @@ ImportPath ; StatementListItem - : "@import" ImportPath { $$ = CYNew CYImport(); } + : LexSetStatement LexSetRegExp "@import" ImportPath { $$ = CYNew CYImport(); } ; /* }}} */ /* Cycript (Objective-C): Boxed Expressions {{{ */