From 5d660beded5f90cbdc0a6875b1bd74c37ba98294 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 14 Jun 2012 22:10:09 -0700 Subject: [PATCH] Re-thread LexSet{Statement,RegExp} to fix division. --- Cycript.yy.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {{{ */ -- 2.45.2