]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.1.65
authorfred <fred>
Tue, 26 Mar 2002 22:24:15 +0000 (22:24 +0000)
committerfred <fred>
Tue, 26 Mar 2002 22:24:15 +0000 (22:24 +0000)
input/bugs/core.ly [new file with mode: 0644]
lily/include/my-lily-lexer.hh
lily/my-lily-lexer.cc

diff --git a/input/bugs/core.ly b/input/bugs/core.ly
new file mode 100644 (file)
index 0000000..ef4cb12
--- /dev/null
@@ -0,0 +1,11 @@
+
+text = \lyrics \repeat "fold" 2 {}
+\alternative {
+       foo bar
+       afoo abar
+}
+
+
+\score {
+\text
+}
index c56e1a910ad0c24d905c51e4a5a8765b397f82ce..cc86ccdac19294aa005dec466de5028dbf570033 100644 (file)
@@ -44,6 +44,8 @@ public:
   ~My_lily_lexer ();
   int yylex ();
 
+  Input here_input () const;
+
   void start_main_input ();
   bool notename_b (String) const;
   bool chordmodifier_b (String) const;
index 8e73971984178a09b3720056077318a58aee8e6e..00e55ae4dbbc75c4393ef1eacbda98f49707447f 100644 (file)
@@ -18,6 +18,7 @@
 #include "source-file.hh"
 #include "main.hh"
 #include "scope.hh"
+#include "input.hh"
 
 static Keyword_ent the_key_tab[]={
   {"spanrequest", SPANREQUEST},
@@ -231,3 +232,10 @@ My_lily_lexer::escaped_char(char c) const
     }
   return 0;
 }
+
+Input
+My_lily_lexer::here_input () const
+{
+  Source_file * f_l= source_file_l();
+  return Input (f_l, here_ch_C());
+}