]> git.donarmstrong.com Git - lilypond.git/blob - symbol.hh
release: 0.0.6
[lilypond.git] / symbol.hh
1 #ifndef SYMBOL_HH
2 #define SYMBOL_HH
3 #include "string.hh"
4 #include "boxes.hh"
5 #include "proto.hh"
6
7 struct Symbol {
8     String tex;
9     Box dim;
10
11     Symbol (String, Box);
12     Symbol();
13 };
14
15 struct Parametric_symbol {    
16     Symtables*symtables_;       // indirection 
17
18     /*****************/
19     
20     Parametric_symbol(Symtables*s) { symtables_ = s; }
21     Symbol eval(String args1) const; // convenience
22     Symbol eval(String args1,String arg2) const; // convenience
23     virtual Symbol eval(svec<String> args)const =0;
24     virtual ~Parametric_symbol(){}
25 };
26
27 #endif