]> git.donarmstrong.com Git - lilypond.git/commitdiff
parser.yy et al: Fix a few style issues of d8ee829c73452cc35ef17c6c22abf5b47c754c15
authorDavid Kastrup <dak@gnu.org>
Mon, 12 Sep 2011 08:09:34 +0000 (10:09 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 12 Sep 2011 17:10:01 +0000 (19:10 +0200)
lily/include/lily-lexer.hh
lily/lexer.ll
lily/lily-parser.cc
lily/parser.yy

index f4f6e14d3e020a14b21df5bc4b46f6e39170e636..9729ca701664d8cbaa28277408e62c6cc1e434aa 100644 (file)
@@ -102,7 +102,6 @@ public:
   SCM lookup_identifier (string s);
   SCM lookup_identifier_symbol (SCM s);
   void push_extra_token (int token_type);
-  void push_embedded_token ();
   void push_chord_state (SCM tab);
   void push_figuredbass_state ();
   void push_lyric_state ();
index 6bb304bff1b6b715e15bf4695d4644e4a60c9411..1cb8e33b8e031b2e397e0eea91a7b1c67082528d 100644 (file)
@@ -732,12 +732,6 @@ Lily_lexer::push_extra_token (int token_type)
        extra_token_types_.push_back (token_type);
 }
 
-void
-Lily_lexer::push_embedded_token ()
-{
-       push_extra_token (EMBEDDED_LILY);
-}
-
 void
 Lily_lexer::push_chord_state (SCM tab)
 {
index 5c1a3d358d61f390212f14915fa60e1d5c3536ce..12646bb3b450e3c6a65313b52a520fc36b4dfe41 100644 (file)
@@ -175,10 +175,10 @@ Lily_parser::parse_string_expression (string ly_code)
   lexer_->new_input (lexer_->main_input_name_, ly_code, sources_);
 
   SCM mod = lexer_->set_current_scope ();
-  lexer_->push_embedded_token ();
+  lexer_->push_extra_token (EMBEDDED_LILY);
   do_yyparse ();
-  SCM result = lexer_->lookup_identifier_symbol (ly_symbol2scm ("$parseStringResult"));
-  // $parseStringResult is set in the grammar rule for embedded_lilypond
+  SCM result = lexer_->lookup_identifier_symbol (ly_symbol2scm ("parseStringResult"));
+  // parseStringResult is set in the grammar rule for embedded_lilypond
   
   scm_set_current_module (mod);
 
index 19e1a1140c0d9bc1f79d7fb6ecd64485ebfe933e..d061ab7ece0b242911f8d3dfb53001fb037ecd56 100644 (file)
@@ -476,7 +476,7 @@ start_symbol:
                PARSER->lexer_->push_note_state (alist_to_hashq (nn));
        } embedded_lilypond {
                PARSER->lexer_->pop_state ();
-               PARSER->lexer_->set_identifier (ly_symbol2scm ("$parseStringResult"), $3);
+               PARSER->lexer_->set_identifier (ly_symbol2scm ("parseStringResult"), $3);
        }
        ;
 
@@ -583,7 +583,7 @@ embedded_lilypond:
        | error {
                PARSER->error_level_ = 1;
        }
-       | embedded_lilypond INVALID     {
+       | INVALID embedded_lilypond {
                PARSER->error_level_ = 1;
        }
        ;