-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen-comm.h
61 lines (53 loc) · 2.77 KB
/
gen-comm.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
/*
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.
*/
extern IR_node_t end_marker_single_definition;
extern int real_look_ahead_number;
int canonical_rule_right_hand_side_prefix_length
(IR_node_t canonical_rule, IR_node_t bound_right_hand_side_element);
void traverse_all_LR_set_predecessor_paths
(IR_node_t LR_set, int path_length,
int (*applied_function) (IR_node_t LR_set),
int start_length_for_function);
void initiate_traverse_cache (void);
void traverse_all_LR_set_predecessors
(IR_node_t LR_set, int path_length,
int (*applied_function) (IR_node_t LR_set));
void traverse_cache_off (void);
void traverse_cache_on (void);
void finish_traverse_cache (void);
void reverse_traverse_all_LR_set_predecessor_paths
(IR_node_t LR_set, int path_length,
void (*applied_function) (IR_node_t LR_set),
int start_length_for_function);
IR_node_t characteristic_symbol_of_LR_set (IR_node_t LR_set);
void initiate_goto_set_cache (void);
IR_node_t find_goto_LR_situation (IR_node_t LR_set,
IR_node_t single_definition);
IR_node_t goto_by_nonterminal (IR_node_t LR_set, IR_node_t single_definition);
void finish_goto_set_cache (void);
void LR_set_conflicts_number (IR_node_t LR_set,
int *shift_reduce_conflicts_number,
int *reduce_reduce_conflicts_number);
int attribute_name_to_attribute_number
(const char *attribute_name,
IR_node_t canonical_rule,
IR_node_t bound_right_hand_side_element);
IR_node_t get_the_single_LR_set_predecessor (IR_node_t LR_set,
int path_length);
int pushed_LR_sets_or_attributes_number_on_path (IR_node_t LR_set, int length,
int attribute_flag);