4 #include "identifier.hh"
6 #include "associter.hh"
9 static Keyword_ent the_key_tab[]={
11 "rhythmstaff", RHYTHMSTAFF,
12 "melodicstaff", MELODICSTAFF,
24 "unitspace", UNITSPACE,
26 "octave", OCTAVECOMMAND,
29 "geometric", GEOMETRIC,
30 "duration", DURATIONCOMMAND,
36 lookup_keyword(String s)
38 static Keyword_table table(the_key_tab);
39 return table.lookup(s);
42 Assoc<String, Identifier*> the_id_tab;
45 lookup_identifier(String s)
47 if (!the_id_tab.elt_query(s))
54 add_identifier(Identifier*i)
56 the_id_tab[i->name] = i;
63 for (Assoc_iter<String,Identifier*> ai(the_id_tab); ai.ok(); ai++) {
64 mtor << "deleting: " << ai.key()<<'\n';