Debian Codegraph @

texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.h

raw
1 /*
2 * Gregorio is a program that translates gabc files to GregorioTeX
3 * This header shares definitions between the score parser and lexer.
4 *
5 * Gregorio score determination from gabc.
6 * Copyright (C) 2006-2025 The Gregorio Project (see CONTRIBUTORS.md)
7 *
8 * This file is part of Gregorio.
9 *
10 * This program is free software: you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by the Free
12 * Software Foundation, either version 3 of the License, or (at your option)
13 * any later version.
14 *
15 * This program is distributed in the hope that it will be useful, but WITHOUT
16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18 * more details.
19 *
20 * You should have received a copy of the GNU General Public License along with
21 * this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24 #ifndef GABC_SCORE_DETERMINATION_H
25 #define GABC_SCORE_DETERMINATION_H
26
27 #include "bool.h"
28 #include "struct.h"
29 #include "gabc.h"
30
31 typedef union gabc_score_determination_lval_t {
32 char *text;
33 char character;
34 } gabc_score_determination_lval_t;
35
36 #define YYSTYPE gabc_score_determination_lval_t
37 #define YYSTYPE_IS_DECLARED 1
38
39 #define YY_DECL \
40 int gabc_score_determination_lex(void)
41 YY_DECL;
42
43 #define YYLTYPE gregorio_scanner_location
44
45 void gabc_suppress_extra_custos_at_linebreak(gregorio_score *score);
46 void gabc_fix_custos_pitches(gregorio_score *score_to_check);
47 bool gabc_check_score_integrity(gregorio_score *score_to_check);
48 bool gabc_check_infos_integrity(gregorio_score *score_to_check);
49 void gabc_determine_oriscus_orientation(const gregorio_score *score);
50 void gabc_determine_punctum_inclinatum_orientation(const gregorio_score *score);
51 void gabc_determine_ledger_lines(const gregorio_score *const score);
52
53 #endif