+2002-10-10 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * input/regression/bar-scripts.ly: Re-enable.
+
+ * lily/parser.yy:
+ * stepmake/stepmake/c++-rules.make: Fixes for bison 1.51 to be
+ released rsn. Bison 1.50 has a crucial bug and won't work.
+
+ * lily/lexer.ll (My_lily_lexer): Avoid silly flex induced gcc warnings.
+
2002-10-07 Jan Nieuwenhuizen <janneke@gnu.org>
* input/regression/bar-scripts.ly: Blunt documentation build fix.
% FIXME including this file makes lily crash lateron -- breaks website build
-% onestaff = \context Staff = foo\notes {
-% \property Staff.instr = instr
-% \property Staff.instrument = instrument \mark "B"
-% c1 \mark "A" \break c2 c2 \break
-% }
+onestaff = \context Staff = foo\notes {
+ \property Staff.instr = instr
+ \property Staff.instrument = instrument \mark "B"
+ c1 \mark "A" \break c2 c2 \break
+}
-% grstaff = \notes \context GrandStaff <
-% \context Staff = bar {
+grstaff = \notes \context GrandStaff <
+ \context Staff = bar {
-% \property Staff.instr = instr
+ \property Staff.instr = instr
-% \mark "B" \break c1 \mark "A" c2 }
-% \context Staff = bufl { c1 c2 }
-% >
-
-% scpaper = \paper {\translator {\OrchestralScoreContext}}
-% % stpaper = \paper{ \translator {\BarNumberingStaffContext }}
-% stpaper = \paper{ }
+ \mark "B" \break c1 \mark "A" c2 }
+ \context Staff = bufl { c1 c2 }
+>
-% scscore = \score { \grstaff \paper {
-% \scpaper
-% }}
+scpaper = \paper {\translator {\OrchestralScoreContext}}
+% stpaper = \paper{ \translator {\BarNumberingStaffContext }}
+stpaper = \paper{ }
+scscore = \score { \grstaff \paper {
+\scpaper
+}}
-% stscore = \score { \onestaff \paper {
-% \stpaper
-% }}
-% %\score {\stscore}
-% \score {\scscore}
+stscore = \score { \onestaff \paper {
+ \stpaper
+}}
-\score{\notes c''}
\ No newline at end of file
+%\score {\stscore}
+\score {\scscore}
return gh_cons (gh_int2scm (n), gh_int2scm (d));
}
+/* avoid silly flex induced gcc warnings */
+static void yy_push_state (int) {;}
+static void yy_pop_state () {;}
+static int yy_top_state () { return 0; }
+
+static void
+avoid_silly_flex_induced_gcc_warnings ()
+{
+ (void)yy_start_stack_ptr;
+ (void)yy_start_stack_depth;
+ (void)yy_start_stack;
+ yy_push_state (0);
+ yy_pop_state ();
+ yy_top_state ();
+ avoid_silly_flex_induced_gcc_warnings ();
+}
#define YYERROR_VERBOSE 1
+My_lily_parser* my_lily_parser;
#define YYPARSE_PARAM my_lily_parser
#define YYLEX_PARAM my_lily_parser
#define THIS\
$$->set_spot (THIS->here_input ());
}
| SPANREQUEST bare_int STRING {
-
Music * sp = make_span_req ($3);
sp->set_mus_property ("span-direction", gh_int2scm ( $2));
sp->set_spot (THIS->here_input ());
$(DO_LO_DEP) $(CXX) -c $(ALL_CXXFLAGS) $(PIC_FLAGS) -o $@ $<
$(outdir)/%.cc: %.yy
- $(BISON) $<
- @-mv -f $(*F).yy.tab.c $(*F).tab.cc # bison < 1.30
- mv $(*F).tab.cc $@
+ $(BISON) -o $@ $<
+ -mv -f $(*F).yy.tab.c $@ # bison < 1.30
$(outdir)/%.hh: %.yy
- $(BISON) -d $<
- @-mv -f $(*F).yy.tab.h $(*F).tab.hh # bison < 1.30
- mv $(*F).tab.hh $@
- rm -f $(*F).tab.c $(*F).tab.cc # if this happens in the wrong order it triggers recompile of the .cc file
+ $(BISON) -o$(outdir)/$(*F).cc -d $<
+ -mv -f $(*F).yy.tab.h $@ # bison < 1.30
+ -mv $(*F).tab.hh $@
+ rm -f $(*F).tab.c $(*F).tab.cc # bison < 1.30
+ rm -f $(outdir)/$(*F).cc # avoid recompiling the .cc file
$(outdir)/%.cc: %.ll
$(FLEX) -Cfe -p -p -t $< > $@