X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=table.cc;h=b06e2ee92f933057cc8787157c00abf701d5ebe8;hb=4fac7cb7f554ad08c06225c985c7ddbcee1006dc;hp=45e6f4a0e476887a5e11312ef44cdb83c2be2f8a;hpb=727cdcbadf23c1986b0aed547aa645c9813f351b;p=lilypond.git diff --git a/table.cc b/table.cc index 45e6f4a0e4..b06e2ee92f 100644 --- a/table.cc +++ b/table.cc @@ -1,4 +1,5 @@ #include "glob.hh" +#include "debug.hh" #include "string.hh" #include "keyword.hh" #include "parser.hh" @@ -8,6 +9,7 @@ static Keyword_ent the_key_tab[]={ "rhythmstaff", RHYTHMSTAFF, "score", SCORE, "bar", BAR, + "output", OUTPUT, 0,0 } ; @@ -19,9 +21,13 @@ lookup_keyword(String s) return table.lookup(s); } +Assoc the_id_tab; + Identifier* lookup_identifier(String s) { - assert(false); - return 0; + if (!the_id_tab.elt_query(s)) + the_id_tab[s]= new Identifier; + + return the_id_tab[s]; }