]> git.donarmstrong.com Git - lilypond.git/blobdiff - src/table.cc
release: 0.0.17
[lilypond.git] / src / table.cc
index 5e199beb9eee7ca6412b9f735007293c928a7b8b..119475cc54d167cb5b7804ab5b1c2594f5fa1017 100644 (file)
@@ -2,80 +2,7 @@
 #include "debug.hh"
 #include "string.hh"
 #include "inputstaff.hh"
-#include "identparent.hh"
-#include "keyword.hh"
-#include "associter.hh"
-#include "parser.hh"
 
-static Keyword_ent the_key_tab[]={
-    "bar", BAR,
-    "bass", BASS,
-    "clef", CLEF,
-    "cm", CM,
-    "commands", COMMANDS,
-    "duration", DURATIONCOMMAND,
-    "geometric", GEOMETRIC,
-    "in", IN,
-    "key", KEY, 
-    "melodic", MELODIC,
-    "meter", METER,
-    "mm", MM,
-    "octave", OCTAVECOMMAND,
-    "output", OUTPUT,
-    "partial", PARTIAL,
-    "paper", PAPER,
-    "pt", PT,
-    "rhythmic", RHYTHMIC,
-    "score", SCORE,
-    "skip", SKIP,
-    "staff", STAFF,
-    "start", START_T,
-    "table", TABLE,
-    "symboltables", SYMBOLTABLES,
-    "notenames", NOTENAMES,
-    "texid", TEXID,
-    "chord", CHORD,
-    "multi", MULTI,
-    "unitspace", UNITSPACE,
-    "violin", VIOLIN,
-    "voice", VOICE,
-    "voices", VOICES,
-    "width", WIDTH,
-    "music", MUSIC,
-    "grouping", GROUPING,
-    0,0
-};
 
 
-int
-lookup_keyword(String s)
-{
-    static Keyword_table table(the_key_tab);
-    return table.lookup(s);
-}
 
-Assoc<String, Identifier*> the_id_tab;
-
-Identifier*
-lookup_identifier(String s)
-{
-    if (!the_id_tab.elt_query(s))
-       return 0;
-    
-    return the_id_tab[s];
-}
-
-void
-add_identifier(Identifier*i)
-{    
-    the_id_tab[i->name] = i;
-}
-
-void
-delete_identifiers()
-{    
-    for (Assoc_iter<String,Identifier*> ai(the_id_tab); ai.ok(); ai++) {
-       mtor << "deleting: " << ai.key()<<'\n';
-       delete ai.val();
-    }
-}