-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtab.h
59 lines (43 loc) · 2.18 KB
/
tab.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
/*
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.
*/
#include "ird.h"
/* Table of strings and identifiers. */
extern char *insert_string (const char *string);
extern void initiate_string_table (void);
extern void finish_string_table (void);
/* Table of single definitions. */
extern IR_node_t insert_single_definition (IR_node_t single_definition);
extern IR_node_t find_single_definition (IR_node_t identifier_or_literal);
extern void initiate_single_definition_table (void);
extern void finish_single_definition_table (void);
/* Table of literal definitions (single term definition denoting a
literal and literal range definition) with key `values'. */
extern IR_node_t insert_literal_definition (IR_node_t token_definition);
extern IR_node_t find_literal_definition (int left_range_value,
int right_range_value);
extern void initiate_literal_definition_table (void);
extern void finish_literal_definition_table (void);
/* Table of values of terminal (including literal range)
definitions. */
extern IR_node_t insert_token_code_value (IR_node_t token_definition,
int value);
extern void insert_token_code_value_with_overwriting
(IR_node_t token_definition, int value);
extern IR_node_t find_token_code_value (int value);
extern void initiate_token_code_value_table (void);
extern void finish_token_code_value_table (void);