]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/symtable.hh
release: 0.0.40
[lilypond.git] / lily / include / symtable.hh
1 /*
2   lilypond, (c) 1996,97 Han-Wen Nienhuys
3 */
4 #ifndef SYMTABLE_HH
5 #define SYMTABLE_HH
6 #include "assoc.hh"
7 #include "string.hh"
8 #include "symbol.hh"
9
10 struct  Symtable : public Assoc<String, Symbol> {
11     String id_str;
12     
13     Symbol lookup(String)const;
14     void print()const;
15 };
16
17
18 struct Symtables : private Assoc<String, Symtable*> {
19     
20     Symtable* operator()(String s);
21     ~Symtables();
22     Symtables();
23     Symtables(Symtables const&);
24     void add(String, Symtable*);
25     void print()const;
26 };
27
28
29 #endif
30