X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/840966082c867decd624b074661e31945193abea..1fdd7c7aa3b4b5775135c4c58e535caf102207c1:/Parser.ypp.in diff --git a/Parser.ypp.in b/Parser.ypp.in index 4b7751d..c3f2379 100644 --- a/Parser.ypp.in +++ b/Parser.ypp.in @@ -228,6 +228,9 @@ type; }) case CYMarkModule: driver.hold_ = yytranslate_(token::MarkModule); break; + case CYMarkExpression: + driver.hold_ = yytranslate_(token::MarkExpression); + break; } }; @@ -768,12 +771,14 @@ type; }) %start Program %token MarkModule %token MarkScript +%token MarkExpression %% Program : MarkScript Script | MarkModule Module + | MarkExpression Expression[expression] { driver.context_ = $expression; } ; /* Lexer State {{{ */