2 input.hh -- declare Input
4 source file of the LilyPond music typesetter
6 (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
12 #include "flower-proto.hh"
13 #include "std-string.hh"
16 Base class for anything that records its poisition in the parse file.
22 Source_file *source_file_;
25 Source_file *get_source_file () const;
26 char const *start () const;
27 char const *end () const;
29 void set (Source_file *, char const *, char const *);
30 void warning (string) const;
31 void programming_error (string) const;
32 void non_fatal_error (string) const;
33 void error (string) const;
34 void message (string) const;
35 void set_spot (Input const &);
37 void set_location (Input const &, Input const &);
41 string location_string () const;
42 string line_number_string () const;
43 string file_string ()const;
45 int line_number ()const;
46 int column_number ()const;
47 int end_line_number ()const;
48 int end_column_number ()const;
50 void get_counts (int *line, int *char_count, int *col) const;
52 Input (Input const &i);