]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/lily.scm (toplevel-expression): New define.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 18 Apr 2004 17:46:03 +0000 (17:46 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 18 Apr 2004 17:46:03 +0000 (17:46 +0000)
* lily/parser.yy (toplevel_expression): Use it.

* lily/lexer.ll, lily/parser.yy:

ChangeLog
lily/parser.yy
ly/declarations-init.ly
scm/lily.scm

index f489817fe55822fbeefe9a46ce33056473eb14a8..dee858779ea5e73541ee3c0d4bc88851ee2028f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2004-04-18  Jan Nieuwenhuizen  <janneke@gnu.org>
 
+       * scm/lily.scm (toplevel-expression): New define.
+
        * lily/my-lily-parser.cc (ly:parser-add-book-and-score): New function.
 
        * lily/parser.yy (toplevel_expression): Use it.
index 4d04513049828de3f2f690becaeaf5f68ca524b6..749d29a323b099dc6b65da848b113cb32618542b 100644 (file)
@@ -449,10 +449,12 @@ toplevel_expression:
                THIS->header_ = $1;
        }
        | toplevel_music EOI {
-               Music_output_def *paper = get_paper (THIS);
+               Music_output_def *paper = get_paper (THIS);
+               //FIXME
                // delay?
                // SCM proc = paper->get_scmvar ("toplevel-music-handler");
                SCM proc = ly_scheme_function ("ly:parser-add-book-and-score");
+               //SCM proc = ly_scheme_function ("toplevel-music-handler");
                scm_call_2 (proc, THIS->self_scm (), $1->self_scm ());
                scm_gc_unprotect_object (paper->self_scm ());
        }
index 37eb01d06b11c76bf4c17b08c49507ab40fe5293..bb9506f742856ccf2a12ba3e5920c06c922f8723 100644 (file)
@@ -76,9 +76,6 @@ melismaEnd = #(make-span-event 'ManualMelismaEvent STOP)
     #(define page-breaking ly:ragged-page-breaks)
     %%#(define page-breaking ly:optimal-page-breaks)
 
-    %% FIXME: too late?
-    #(define toplevel-music-handler ly:parser-add-book-and-score)
-    
     \include "engraver-init.ly"
 }
 
index f163d26c71028b466f2c33e5a5b5edbb051f1924..55d6dc71fc5b9fddfbcc5babc06acdd878109b2c 100644 (file)
 ;;; debugging evaluator is slower.  This should
 ;;; have a more sensible default.
 
-
 (if (ly:get-option 'verbose)
     (begin
       (debug-enable 'debug)
       (debug-enable 'backtrace)
-      (read-enable 'positions) ))
+      (read-enable 'positions)))
 
+;; FIXME: huh?
+(define-public toplevel-music-handler ly:parser-add-book-and-score)
 
 (define-public (line-column-location line col file)
   "Print an input location, including column number ."
   (string-append (number->string line) ":"
-                (number->string col) " " file)
-  )
+                (number->string col) " " file))
 
 (define-public (line-location line col file)
   "Print an input location, without column number ."
-  (string-append (number->string line) " " file)
-  )
+  (string-append (number->string line) " " file))
 
 (define-public point-and-click #f)