static Keyword_ent the_key_tab[]={
+ {"accacciatura", ACCACCIATURA},
{"accepts", ACCEPTS},
{"addlyrics", ADDLYRICS},
{"alias", ALIAS},
{"apply", APPLY},
{"applycontext", APPLYCONTEXT},
{"applyoutput", APPLYOUTPUT},
+ {"appoggiatura", APPOGGIATURA},
{"autochange", AUTOCHANGE},
{"bar", BAR},
{"breathe", BREATHE},
{"markup", MARKUP},
{"midi", MIDI},
{"name", NAME},
- {"newcontext", NEWCONTEXT},
+ {"new", NEWCONTEXT},
{"notes", NOTES},
{"octave", OCTAVE},
{"once", ONCE},
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