-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.h
106 lines (82 loc) · 3.08 KB
/
common.h
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/*
Copyright (C) 1997-2016 Vladimir Makarov.
Written by Vladimir Makarov <[email protected]>
This file is part of the tool MSTA.
This 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 2, or (at your option)
any later version.
This software 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 GNU CC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "ird.h"
/* Standard designators for true and false values. */
#define FALSE 0
#define TRUE 1
/* Suffix which any syntax description file name must have. If this
macro value is changed then documentation of MSTA must be changed. */
#define STANDARD_INPUT_FILE_SUFFIX ".y"
/* This macro value is used for correct calculation of current position in
file when TAB character is processed. */
#define TAB_STOP 8
/* The following macros denotes the used error recovery method: yacc
error recovery as described in the POSIX standard, a local error
recovery which is better in many cases but it could not work
correctly if there is feedback from the parser to the scanner, and
the minimal cost error recovery which also could not work correctly
if there is feedback from the parser to the scanner. */
#define YACC_ERROR_RECOVERY 0
#define LOCAL_ERROR_RECOVERY 1
#define MINIMAL_ERROR_RECOVERY 2
extern int define_flag;
extern int line_flag;
extern int trace_flag;
extern int verbose_flag;
extern const char *file_prefix;
extern const char *sym_prefix;
extern int w_flag;
extern int cpp_flag;
extern int enum_flag;
extern int error_reduce_flag;
extern int error_conflict_flag;
extern int pattern_equiv_flag;
extern int full_lr_set_flag;
extern int lr_situation_context_flag;
extern int removed_lr_sets_flag;
extern int look_ahead_number;
extern int lr_flag;
extern int lalr_optimization_flag;
extern int regular_optimization_flag;
extern int split_lr_sets_flag;
extern int split_lr_sets_flag_is_defined;
extern int msta_error_recovery;
extern int yacc_input_flag;
extern int strict_flag;
extern int yacc_file_names_flag;
extern int expand_flag;
extern int time_flag;
#ifndef NDEBUG
extern int debug_level;
#endif
extern const char *output_files_name;
extern const char *source_file_name;
extern FILE *output_description_file;
extern char *output_description_file_name;
extern FILE *output_interface_file;
extern char *output_interface_file_name;
extern FILE *output_implementation_file;
extern char *output_implementation_file_name;
extern FILE *output_description_file;
extern char *output_description_file_name;
extern IR_node_t description;
extern IR_node_t error_single_definition;
extern int max_look_ahead_number;