]> git.donarmstrong.com Git - lilypond.git/blobdiff - table.cc
release: 0.0.3
[lilypond.git] / table.cc
index 45e6f4a0e476887a5e11312ef44cdb83c2be2f8a..b06e2ee92f933057cc8787157c00abf701d5ebe8 100644 (file)
--- 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<String, Identifier*> 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];
 }