ROSE
0.9.6a
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
AstFromString.h
Go to the documentation of this file.
1
#ifndef __AST_FROM_STRING_H__
2
#define __AST_FROM_STRING_H__
3
7
#include "
sage3basic.h
"
8
#include <iostream>
9
#include <vector>
10
17
namespace
AstFromString
18
{
19
20
//--------------------------------------------------------------
22
26
#define OFS_MAX_LEN 256
28
31
ROSE_DLL_API
extern
const
char
*
c_char
;
32
34
ROSE_DLL_API
extern
SgNode
*
c_sgnode
;
35
37
ROSE_DLL_API
extern
SgNode
*
c_parsed_node
;
38
40
41
43
47
bool
afs_is_digit
();
49
51
bool
afs_is_identifier_char
();
52
54
bool
afs_is_letter
();
55
57
bool
afs_is_lower_letter
();
58
60
bool
afs_is_upper_letter
();
61
63
65
71
ROSE_DLL_API
bool
afs_match_char
(
char
c);
73
86
ROSE_DLL_API
bool
afs_match_substr
(
const
char
* substr,
bool
checkTrail =
true
);
87
89
ROSE_DLL_API
bool
afs_skip_whitespace
();
90
91
93
ROSE_DLL_API
bool
afs_match_identifier
();
94
96
ROSE_DLL_API
bool
afs_match_integer_const
(
int
* result);
97
99
ROSE_DLL_API
bool
afs_match_translation_unit
();
100
102
ROSE_DLL_API
bool
afs_match_external_declaration
();
103
105
ROSE_DLL_API
bool
afs_match_function_definition
();
106
108
ROSE_DLL_API
bool
afs_match_declaration
();
109
111
ROSE_DLL_API
bool
afs_match_declaration_specifiers
();
112
114
ROSE_DLL_API
bool
afs_match_init_declarator_list
();
115
117
ROSE_DLL_API
bool
afs_match_init_declarator
();
118
120
ROSE_DLL_API
bool
afs_match_storage_class_specifier
();
121
123
ROSE_DLL_API
bool
afs_match_type_specifier
();
124
// type_id in ANTLR grammar
125
//struct_or_union_specifier
126
//struct_or_union
127
//struct_declaration_list
128
//struct_declaration
130
ROSE_DLL_API
bool
afs_match_specifier_qualifier_list
(std::vector<SgNode*> &);
131
//struct_declarator_list
132
//struct_declarator
133
// enum_specifier
134
//enumerator_list
135
// enumerator
137
ROSE_DLL_API
bool
afs_match_type_qualifier
();
138
//declarator
139
//direct_declarator
140
// declarator_suffix
141
// pointer
142
//parameter_type_list
143
// parameter_list
144
//parameter_declaration
145
// identifier_list
147
ROSE_DLL_API
bool
afs_match_type_name
();
148
//abstract_declarator
149
//direct_abstract_declarator
150
//abstract_declarator_suffix
151
// initializer
152
// initializer_list
153
154
156
159
//-----------------------------------------
161
ROSE_DLL_API
bool
afs_match_argument_expression_list
();
162
164
ROSE_DLL_API
bool
afs_match_additive_expression
();
165
167
ROSE_DLL_API
bool
afs_match_multiplicative_expression
();
168
170
ROSE_DLL_API
bool
afs_match_cast_expression
();
171
173
ROSE_DLL_API
bool
afs_match_unary_expression
();
174
176
ROSE_DLL_API
bool
afs_match_postfix_expression
();
177
179
ROSE_DLL_API
bool
afs_match_primary_expression
();
180
182
ROSE_DLL_API
bool
afs_match_constant
();
183
185
ROSE_DLL_API
bool
afs_match_expression
();
186
188
ROSE_DLL_API
bool
afs_match_constant_expression
();
189
191
ROSE_DLL_API
bool
afs_match_assignment_expression
();
192
194
ROSE_DLL_API
bool
afs_match_lvalue
();
195
// assignment_operator, included in assignment_expression in this implementation
197
ROSE_DLL_API
bool
afs_match_conditional_expression
();
198
200
ROSE_DLL_API
bool
afs_match_logical_or_expression
();
201
203
ROSE_DLL_API
bool
afs_match_logical_and_expression
();
204
206
ROSE_DLL_API
bool
afs_match_inclusive_or_expression
();
207
209
ROSE_DLL_API
bool
afs_match_exclusive_or_expression
();
210
212
ROSE_DLL_API
bool
afs_match_and_expression
();
213
215
ROSE_DLL_API
bool
afs_match_equality_expression
();
216
218
ROSE_DLL_API
bool
afs_match_relational_expression
();
219
221
ROSE_DLL_API
bool
afs_match_shift_expression
();
223
224
//-----------------------------------------
226
229
ROSE_DLL_API
bool
afs_match_statement
();
231
233
ROSE_DLL_API
bool
afs_match_labeled_statement
();
235
ROSE_DLL_API
bool
afs_match_compound_statement
();
237
ROSE_DLL_API
bool
afs_match_expression_statement
();
239
ROSE_DLL_API
bool
afs_match_selection_statement
();
241
ROSE_DLL_API
bool
afs_match_iteration_statement
();
243
ROSE_DLL_API
bool
afs_match_jump_statement
();
244
246
}
247
248
#endif
/* __AST_FROM_STRING_H__ */
rose-edg4x
src
frontend
SageIII
astFromString
AstFromString.h
Generated on Mon May 5 2014 17:28:49 for ROSE by
1.8.4