OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1997--2011 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2011 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 Pitch *inversion, Pitch *bass, Duration d); | 41 Pitch *inversion, Pitch *bass, Duration d); |
42 void set_chord_tremolo (int type); | 42 void set_chord_tremolo (int type); |
43 void set_last_duration (Duration const *); | 43 void set_last_duration (Duration const *); |
44 void set_last_pitch (Pitch const *); | 44 void set_last_pitch (Pitch const *); |
45 | 45 |
46 public: | 46 public: |
47 Lily_lexer *lexer_; | 47 Lily_lexer *lexer_; |
48 Sources *sources_; | 48 Sources *sources_; |
49 Duration default_duration_; | 49 Duration default_duration_; |
50 string output_basename_; | 50 string output_basename_; |
51 SCM local_environment_; | 51 SCM closures_; |
52 | 52 |
53 int fatal_error_; | 53 int fatal_error_; |
54 int error_level_; | 54 int error_level_; |
55 bool ignore_version_b_; | 55 bool ignore_version_b_; |
56 | 56 |
57 Lily_parser (Sources *sources); | 57 Lily_parser (Sources *sources); |
58 Lily_parser (Lily_parser const &, SCM env = SCM_UNDEFINED); | 58 Lily_parser (Lily_parser const &, SCM closures = SCM_EOL); |
59 | 59 |
60 DECLARE_SCHEME_CALLBACK (layout_description, ()); | 60 DECLARE_SCHEME_CALLBACK (layout_description, ()); |
61 | 61 |
62 void clear (); | 62 void clear (); |
63 void do_init_file (); | 63 void do_init_file (); |
64 void do_yyparse (); | 64 void do_yyparse (); |
65 void include_string (string ly_code); | 65 void include_string (string ly_code); |
66 void parse_file (string init, string name, string out_name); | 66 void parse_file (string init, string name, string out_name); |
67 void parse_string (string ly_code); | 67 void parse_string (string ly_code); |
68 SCM parse_string_expression (string ly_code); | 68 SCM parse_string_expression (string ly_code, string filename, int line); |
69 void parser_error (string); | 69 void parser_error (string); |
70 void parser_error (Input const &, string); | 70 void parser_error (Input const &, string); |
71 void set_yydebug (bool); | 71 void set_yydebug (bool); |
72 | 72 |
73 SCM make_scope () const; | 73 SCM make_scope () const; |
74 }; | 74 }; |
75 | 75 |
76 DECLARE_UNSMOB (Lily_parser, lily_parser); | 76 DECLARE_UNSMOB (Lily_parser, lily_parser); |
77 | 77 |
78 SCM ly_parse_file (SCM); | 78 SCM ly_parse_file (SCM); |
79 SCM ly_parse_string (SCM); | 79 SCM ly_parse_string (SCM); |
80 // SCM ly_parser_add_book_and_score (SCM, SCM); | 80 // SCM ly_parser_add_book_and_score (SCM, SCM); |
81 SCM ly_parser_print_book (SCM, SCM); | 81 SCM ly_parser_print_book (SCM, SCM); |
82 SCM ly_parser_print_score (SCM, SCM); | 82 SCM ly_parser_print_score (SCM, SCM); |
83 SCM ly_parser_bookify (SCM, SCM); | 83 SCM ly_parser_bookify (SCM, SCM); |
84 SCM ly_parser_scorify (SCM, SCM); | 84 SCM ly_parser_scorify (SCM, SCM); |
85 | 85 |
86 Output_def *get_layout (Lily_parser *parser); | 86 Output_def *get_layout (Lily_parser *parser); |
87 Output_def *get_midi (Lily_parser *parser); | 87 Output_def *get_midi (Lily_parser *parser); |
88 Output_def *get_paper (Lily_parser *parser); | 88 Output_def *get_paper (Lily_parser *parser); |
89 void init_papers (Lily_parser *parser); | 89 void init_papers (Lily_parser *parser); |
90 void push_paper (Lily_parser *parser, Output_def *paper); | 90 void push_paper (Lily_parser *parser, Output_def *paper); |
91 void pop_paper (Lily_parser *parser); | 91 void pop_paper (Lily_parser *parser); |
92 void set_paper (Lily_parser *parser, Output_def *paper); | 92 void set_paper (Lily_parser *parser, Output_def *paper); |
93 SCM get_header (Lily_parser *parser); | 93 SCM get_header (Lily_parser *parser); |
94 | 94 |
95 #endif /* LILY_PARSER_HH */ | 95 #endif /* LILY_PARSER_HH */ |
OLD | NEW |