From ad4dcb3a4b00f6f60b11fac1a27ee0dd188ca564 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 28 Jan 1998 22:55:41 +0000 Subject: [PATCH] lilypond-0.1.54 --- lily/include/includable-lexer.hh | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lily/include/includable-lexer.hh diff --git a/lily/include/includable-lexer.hh b/lily/include/includable-lexer.hh new file mode 100644 index 0000000000..f9dce9696d --- /dev/null +++ b/lily/include/includable-lexer.hh @@ -0,0 +1,43 @@ +/* + includable-lexer.hh -- declare Includable_lexer + + source file of the LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ + + +#ifndef INCLUDABLE_LEXER_HH +#define INCLUDABLE_LEXER_HH + +#include + +#include "string.hh" +#include "varray.hh" +#include "fproto.hh" +#include "proto.hh" + +// GIGA urg! +typedef struct yy_buffer_state *YY_BUFFER_STATE; + +/** + an yyFlexLexer child with provisions for inclusion. + */ +class Includable_lexer : public yyFlexLexer { + Array state_stack_; +protected: + bool close_input (); + Array include_stack_; + Array char_count_stack_; +public: + + Source_file* source_file_l () const; + void new_input (String s,Sources*); + Includable_lexer (); + ~Includable_lexer (); + void add_lexed_char (int); + char const * here_ch_C (); +}; + + +#endif // INCLUDABLE_LEXER_HH -- 2.39.5