]> git.donarmstrong.com Git - lilypond.git/commitdiff
parser.yy: get along without %code Bison directive to reduce dependencies
authorDavid Kastrup <dak@gnu.org>
Sat, 22 Sep 2012 17:36:25 +0000 (19:36 +0200)
committerDavid Kastrup <dak@gnu.org>
Sat, 22 Sep 2012 20:34:56 +0000 (22:34 +0200)
lily/include/lily-lexer.hh
lily/parser.yy

index d27b0d3a50f01484770ca2eb6579b86c9a5afef6..4c5f9268c249b60dd7d1ca97f837ee4ab08a2e3a 100644 (file)
@@ -54,7 +54,7 @@ private:
 public:
   SCM eval_scm_token (SCM sval) { return eval_scm (sval, '#'); }
   SCM extra_tokens_;
-  YYSTYPE *lexval_;
+  SCM *lexval_;
   Input *lexloc_;
   bool is_main_input_;
 
index 981cf40bab5a40570601b3a2b517714b5755c88d..079573648e3c93d251e64760706e137d4819dd45 100644 (file)
@@ -27,7 +27,7 @@
  * inconsistent state of indentation.
  */
 
-%code requires {
+%{
 
 #define yyerror Lily_parser::parser_error
 
@@ -49,7 +49,7 @@
                 free (p);                                               \
         } while (0)
 
-}
+%}
 
 %parse-param {Lily_parser *parser}
 %parse-param {SCM *retval}