4 #include "my-lily-lexer.hh"
6 #include "time-description.hh"
7 #include "source-file.hh"
11 ostream &warnout (cerr);
24 cerr << "error: " << s << "\n";
30 error_t(String const & s, Moment const & r)
32 String t_mom = String(trunc(r)) + String(r - Moment(trunc(r)));
33 String e=s+ " (t = " + t_mom + ")";
38 error_t(String const & s, Time_description const &t_tdes)
40 String e=s+ " (at t=" + String(t_tdes.bars_i_) + ": " + String(t_tdes.whole_in_measure_) + ")\n";
45 message( String message_str, char const* context_ch_C )
47 String str = ""; //"lilypond: ";// GNU format messages!
48 Source_file* sourcefile_l = source_l_g->sourcefile_l( context_ch_C );
50 str += sourcefile_l->file_line_no_str(context_ch_C) + String(": ");
55 str += sourcefile_l->error_str( context_ch_C );
63 warning( String message_str, char const* context_ch_C )
65 message( "warning: " + message_str, context_ch_C );
69 error( String message_str, char const* context_ch_C )
71 message( message_str, context_ch_C );
72 // since when exits error again?
73 // i-d say: error: errorlevel |= 1; -> no output upon error
74 // warning: recovery -> output (possibly wrong)
76 lexer->errorlevel_i_ |= 1;*/