aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/bison/src/glyphs.h
blob: dbbd32c421e626d7fa0f031e73874e2b946cd7a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Graphical symbols.

   Copyright (C) 2020-2021 Free Software Foundation, Inc.

   This file is part of Bison, the GNU Compiler Compiler.

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */

#ifndef GLYPHS_H
# define GLYPHS_H

/* Initialize the following variables.  */
void glyphs_init (void);

/* In gnulib/lib/unicodeio.h unicode_to_mb uses a buffer of 25 bytes.
   In down_arrow, we append one space.  */
typedef char glyph_buffer_t[26];

/* "→", separates the lhs of a rule from its rhs.  */
extern glyph_buffer_t arrow;
extern int arrow_width;

/* "•", a point in an item (aka, a dotted rule).  */
extern glyph_buffer_t dot;
extern int dot_width;

/* "↳ ", below an lhs to announce the rhs.  */
extern glyph_buffer_t down_arrow;
extern int down_arrow_width;

/* "ε", an empty rhs.  */
extern glyph_buffer_t empty;
extern int empty_width;

/* " ", separate symbols in the rhs of a derivation.  */
extern const char *derivation_separator;
extern int derivation_separator_width;

#endif /* GLYPHS_H */