#include "scm-hash.hh"
#include "scm-option.hh"
#include "score.hh"
-#include "text-item.hh"
+#include "text-interface.hh"
#include "warn.hh"
#define MY_MAKE_MUSIC(x) make_music_by_name (ly_symbol2scm (x))
Music*
make_lyric_combine_music (SCM name, Music *music)
{
- Music *combine = MY_MAKE_MUSIC ("NewLyricCombineMusic");
+ Music *combine = MY_MAKE_MUSIC ("LyricCombineMusic");
combine->set_property ("element", music->self_scm ());
combine->set_property ("associated-context", name);
return combine;
%type <book> book_block
%type <book> book_body
-%type <i> bare_int
%type <i> bare_unsigned
%type <i> bass_mod
%type <i> dots
$$->set_spot (@$);
}
| SCORE_IDENTIFIER {
- $$ = new Score ( *unsmob_score ($1));
+ $$ = unsmob_score ($1);
$$->set_spot (@$);
}
| score_body object_id_setting {
| LYRICS_STRING {
$$ = $1;
}
- | bare_int {
- $$ = scm_int2num ($1);
+ | bare_number {
+ $$ = $1;
+/* if (scm_integer_p ($1) == SCM_BOOL_T)
+ {
+ int k = scm_to_int (scm_inexact_to_exact ($1));
+ $$ = k;
+ } else
+ {
+ THIS->parser_error (@1, _ ("need integer number arg"));
+ $$ = 0;
+ }*/
}
| embedded_scm {
$$ = $1;
}
;
-bare_int:
- bare_number {
- if (scm_integer_p ($1) == SCM_BOOL_T)
- {
- int k = scm_to_int ($1);
- $$ = k;
- } else
- {
- THIS->parser_error (@1, _ ("need integer number arg"));
- $$ = 0;
- }
- }
- | '-' bare_int {
- $$ = -$2;
- }
- ;
-
exclamations:
{ $$ = 0; }
| exclamations '!' { $$ ++; }