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--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2015 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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 TODO: interface is too complicated | 30 TODO: interface is too complicated |
31 */ | 31 */ |
32 class Lily_parser : public Smob<Lily_parser> | 32 class Lily_parser : public Smob<Lily_parser> |
33 { | 33 { |
34 SCM do_yyparse (); | 34 SCM do_yyparse (); |
35 static SCM do_yyparse_trampoline (void *parser); | 35 static SCM do_yyparse_trampoline (void *parser); |
36 public: | 36 public: |
37 int print_smob (SCM, scm_print_state *) const; | 37 int print_smob (SCM, scm_print_state *) const; |
38 SCM mark_smob () const; | 38 SCM mark_smob () const; |
39 static const char type_p_name_[]; | 39 static const char * const type_p_name_; |
40 virtual ~Lily_parser (); | 40 virtual ~Lily_parser (); |
41 Lily_lexer *lexer_; | 41 Lily_lexer *lexer_; |
42 Sources *sources_; | 42 Sources *sources_; |
43 Duration default_duration_; | 43 Duration default_duration_; |
44 int default_tremolo_type_; | 44 int default_tremolo_type_; |
45 string output_basename_; | 45 string output_basename_; |
46 SCM closures_; | 46 SCM closures_; |
47 | 47 |
48 int fatal_error_; | 48 int fatal_error_; |
49 int error_level_; | 49 int error_level_; |
(...skipping 24 matching lines...) Expand all Loading... |
74 Output_def *get_layout (Lily_parser *parser); | 74 Output_def *get_layout (Lily_parser *parser); |
75 Output_def *get_midi (Lily_parser *parser); | 75 Output_def *get_midi (Lily_parser *parser); |
76 Output_def *get_paper (Lily_parser *parser); | 76 Output_def *get_paper (Lily_parser *parser); |
77 void init_papers (Lily_parser *parser); | 77 void init_papers (Lily_parser *parser); |
78 void push_paper (Lily_parser *parser, Output_def *paper); | 78 void push_paper (Lily_parser *parser, Output_def *paper); |
79 void pop_paper (Lily_parser *parser); | 79 void pop_paper (Lily_parser *parser); |
80 void set_paper (Lily_parser *parser, Output_def *paper); | 80 void set_paper (Lily_parser *parser, Output_def *paper); |
81 SCM get_header (Lily_parser *parser); | 81 SCM get_header (Lily_parser *parser); |
82 | 82 |
83 #endif /* LILY_PARSER_HH */ | 83 #endif /* LILY_PARSER_HH */ |
OLD | NEW |