static Keyword_ent the_key_tab[]={
+ {"acciaccatura", ACCIACCATURA},
{"accepts", ACCEPTS},
{"addlyrics", ADDLYRICS},
{"alias", ALIAS},
{"apply", APPLY},
{"applycontext", APPLYCONTEXT},
{"applyoutput", APPLYOUTPUT},
+ {"appoggiatura", APPOGGIATURA},
{"autochange", AUTOCHANGE},
{"bar", BAR},
{"breathe", BREATHE},
{"default", DEFAULT},
{"denies", DENIES},
{"description", DESCRIPTION},
- {"duration", DURATION},
{"figures",FIGURES},
{"grace", GRACE},
{"grobdescriptions", GROBDESCRIPTIONS},
{"markup", MARKUP},
{"midi", MIDI},
{"name", NAME},
+ {"new", NEWCONTEXT},
{"notes", NOTES},
{"octave", OCTAVE},
{"once", ONCE},
{"paper", PAPER},
{"partcombine", PARTCOMBINE},
{"partial", PARTIAL},
- {"pitch", PITCH},
{"pitchnames", PITCHNAMES},
{"property", PROPERTY},
{"relative", RELATIVE},
{"set", SET},
{"simultaneous", SIMULTANEOUS},
{"skip", SKIP},
+ {"tag", TAG},
{"tempo", TEMPO},
{"time", TIME_T},
{"times", TIMES},
My_lily_lexer::My_lily_lexer ()
{
+ // yy_flex_debug = 1;
+
keytable_ = new Keyword_table (the_key_tab);
+
+ chordmodifier_tab_ = scm_make_vector (gh_int2scm (1), SCM_EOL);
+ pitchname_tab_ = scm_make_vector (gh_int2scm (1), SCM_EOL);
+
scopes_ = SCM_EOL;
add_scope(ly_make_anonymous_module());
{
last_input_ = here_input();
}
-
-#if 0
-SCM
-My_lily_lexer::scan_markup_word (String s)
-{
- /*
- TODO: better implementation:
-
- - make a table of markup functions, for quicker lookup
-
- - error handling.
-
- */
- SCM s = scm_c_eval_str ((s + "-markup").to_str0());
- yylval.scm = s;
- return MARKUP_HEAD;
-}
-#endif