From 7e07f52a66fd319f09c5806abc9edc9cff2561ec Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:30:02 +0000 Subject: [PATCH] lilypond-0.0.26 --- src/inputstaff.cc | 10 ++++++++-- src/mylexer.cc | 3 --- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/inputstaff.cc b/src/inputstaff.cc index 70d91c669f..3c3909468d 100644 --- a/src/inputstaff.cc +++ b/src/inputstaff.cc @@ -8,6 +8,7 @@ #include "melodicstaff.hh" #include "rhythmstaff.hh" #include "lyricstaff.hh" +#include "complexmelodicstaff.hh" #include "staff.hh" void @@ -34,13 +35,18 @@ Staff* Input_staff::parse(Score*score_l) { Staff *p=0; - - if (type == "melodic") + + if (type == "complex") + p = new Complex_melodic_staff; + else if (type == "melodic") p = new Melodic_staff; else if (type == "rhythmic") p = new Rhythmic_staff; else if (type == "lyric") p = new Lyric_staff; + else + error("Unknown staff-type `" + type +"\'"); + p->score_l_ = score_l; p->define_spot_str_ = define_spot_str_; diff --git a/src/mylexer.cc b/src/mylexer.cc index d2e4b18ff8..acda945d3f 100644 --- a/src/mylexer.cc +++ b/src/mylexer.cc @@ -22,9 +22,7 @@ static Keyword_ent the_key_tab[]={ "goto", GOTO, "in", IN, "key", KEY, - "lyric", LYRIC, "mark", MARK, - "melodic", MELODIC, "meter", METER, "mm", MM, "octave", OCTAVECOMMAND, @@ -33,7 +31,6 @@ static Keyword_ent the_key_tab[]={ "paper", PAPER, "plet", PLET, "pt", PT, - "rhythmic", RHYTHMIC, "score", SCORE, "script", SCRIPT, "skip", SKIP, -- 2.39.5