]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.15
authorfred <fred>
Tue, 10 Dec 1996 14:42:26 +0000 (14:42 +0000)
committerfred <fred>
Tue, 10 Dec 1996 14:42:26 +0000 (14:42 +0000)
src/lexer.l
src/lookup.cc
src/pscore.cc

index aaacf06df5840b453e9dea491c6cf92e93a1da88..f83cf144df65ff5f045910cba000c2de60e2aefe 100644 (file)
@@ -39,7 +39,7 @@ DURNAME               1|2|4|8|16|32
 DURATION       {DURNAME}\.*
 FULLNOTE       {PITCH}{DURATION}?
 WORD           [a-zA-Z][a-zA-Z0-9_]+
-REAL           [0-9]+(\.[0-9]*)?
+REAL           -?[0-9]+(\.[0-9]*)?
 
 %%
 
@@ -86,7 +86,7 @@ REAL          [0-9]+(\.[0-9]*)?
 }
 <notes>[ \t\n]+                {
 }
-<notes>%.*$            {
+<notes>[%#].*$         { 
 
 }
 <notes>\$      {
index c22e3aaf556d112d196c24173a560826ed909be3..7376f3c1d41265fdc7dba607ac7b3fa0cba9fdcf 100644 (file)
@@ -5,26 +5,35 @@
 #include "tex.hh"
 #include "scalar.hh"
 
-Real
-Lookup::internote()
+
+Lookup::Lookup()
 {
-    return ball(4).dim.y.length()/2;
+    texsetting = "\\unknowntexsetting";
+    symtables_ = new Symtables;
 }
 
-void
-Lookup::parse(Text_db&t)
+Lookup::Lookup(Lookup const &s)
+{
+    texsetting = s.texsetting;
+    symtables_ = new Symtables(*s.symtables_);
+}
+Lookup::~Lookup()
 {
-    symtables_->read(t) ;
+    delete symtables_;
 }
 
-Lookup::Lookup()
+void
+Lookup::add(String s, Symtable*p)
 {
-    symtables_ = new Symtables;
+    symtables_->add(s, p);
 }
 
-Lookup::~Lookup()
+/****************/
+
+Real
+Lookup::internote()
 {
-    delete symtables_;
+    return ball(4).dim.y.length()/2;
 }
 
 Symbol
@@ -100,8 +109,6 @@ Lookup::streepjes(int i)
     return ret;
 }
 
-/****************************************************************/
-// bare bones.
 
 
 Symbol
@@ -122,9 +129,6 @@ Lookup::linestaff(int lines, Real wid)
     return s;
 }
 
-/****************************************************************/
-
-
 
 Symbol
 Lookup::meter(svec<Scalar> a)
@@ -156,5 +160,3 @@ Lookup::stem(Real y1,Real y2)
     s.tex = substitute_args(src,a);
     return s;
 }
-
-
index 378ad37f0a9b980df7986c33968a1b73ac9103a2..fcd03ca55a18a0163f19e58f00b3e2f190bd6623 100644 (file)
@@ -1,5 +1,6 @@
 // utility functions for PScore
 #include "debug.hh"
+#include "lookup.hh"
 #include "spanner.hh"
 #include "paper.hh"
 #include "molecule.hh"
@@ -147,6 +148,7 @@ PScore::output(Tex_stream &ts)
 {
     int l=1;
 
+    ts << "\n "<<  paper_->lookup_->texsetting << "%(Tex id)\n";
     for (PCursor<Line_of_score*> lic(lines); lic.ok(); lic++) {
        ts << "% line of score no. " << l++ <<"\n";
        ts << lic->TeXstring();