From 5a5b01e4e450949d0e8770ffd483da52e89c093a Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 23 Mar 1997 10:36:16 +0000 Subject: [PATCH] lilypond-0.0.44 --- lily/include/my-lily-parser.hh | 65 ++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 lily/include/my-lily-parser.hh diff --git a/lily/include/my-lily-parser.hh b/lily/include/my-lily-parser.hh new file mode 100644 index 0000000000..679c381181 --- /dev/null +++ b/lily/include/my-lily-parser.hh @@ -0,0 +1,65 @@ +/* + my-lily-parser.hh -- declare + + source file of the LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ + + +#ifndef MY_LILY_PARSER_HH +#define MY_LILY_PARSER_HH +#include "proto.hh" +#include "duration.hh" +#include "string.hh" +#include "varray.hh" +#include "lily-proto.hh" +#include "proto.hh" +#include "duration.hh" +#include "string.hh" +#include "varray.hh" + +class My_lily_parser { +public: + friend int yyparse( void*); + + int default_octave_i_; + Duration default_duration_; + String textstyle_str_; + + bool last_duration_mode ; + + Array pre_reqs, post_reqs; + Array define_spot_array_; + char const* defined_ch_C_; + int fatal_error_i_; + Sources * source_l_; + int error_level_i_; + bool init_parse_b_; + My_lily_lexer * lexer_p_; + + Moment plet_mom(); + void add_requests( Voice_element*v); + + Voice_element * get_note_element(Note_req * ,Duration *); + Voice_element* get_rest_element(String,Duration *); + Voice_element* get_word_element(Text_def*, Duration*); + void set_last_duration(Duration const *); + void set_duration_mode(String s); + char const* here_ch_C()const; + void remember_spot(); + Paper_def*default_paper(); + void do_yyparse(); + void parser_error(String); + + Request* get_parens_request(char c); + + void set_debug(); + void set_yydebug(bool); + void print_declarations(); +public: + void parse_file ( String init_str, String file_str); + My_lily_parser(Sources * sources_l); +}; + +#endif // MY_LILY_PARSER_HH -- 2.39.5