]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/parse-scm.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / parse-scm.hh
1 /*
2   lily-guile.hh encapsulate guile
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2004--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef PARSE_SCM_HH
10 #define PARSE_SCM_HH
11
12 #include "input.hh"
13 #include "lily-guile.hh"
14
15 extern bool parse_protect_global;
16 extern bool parsed_objects_should_be_dead;
17
18 struct Parse_start
19 {
20   char const *str;
21   int nchars;
22   Input start_location_;
23   bool safe_;
24   Lily_parser *parser_;
25
26   Parse_start() {
27     str = 0;
28     nchars = 0;
29     safe_ = false;
30     parser_ = 0;
31   }     
32 };
33
34 SCM catch_protected_parse_body (void *);
35 SCM protected_ly_parse_scm (Parse_start *, bool);
36 SCM ly_parse_scm (char const *, int *, Input, bool, Lily_parser *);
37
38 #endif /* PARSE_SCM_HH */