struct name cleanup in preparation for AST + warning removal
[babeltrace.git] / formats / ctf / metadata / ctf-ast.h
1 #ifndef _CTF_PARSER_H
2 #define _CTF_PARSER_H
3
4 #include <helpers/list.h>
5 #include <stdio.h>
6 #include <glib.h>
7
8 // the parameter name (of the reentrant 'yyparse' function)
9 // data is a pointer to a 'SParserParam' structure
10 //#define YYPARSE_PARAM scanner
11
12 // the argument for the 'yylex' function
13 #define YYLEX_PARAM ((struct ctf_scanner *) scanner)->scanner
14
15 struct ctf_node;
16 struct ctf_parser;
17
18 enum node_type {
19 NODE_UNKNOWN,
20 NODE_ROOT,
21 NODE_EVENT,
22 NODE_STREAM,
23 NODE_TYPE,
24 NODE_TRACE,
25
26 NR_NODE_TYPES,
27 };
28
29 struct ctf_node {
30 enum node_type type;
31 char *str;
32 long long ll;
33 struct ctf_node *parent;
34 char *ident;
35 struct cds_list_head siblings;
36 struct cds_list_head children;
37 struct cds_list_head gc;
38 };
39
40 struct ctf_ast {
41 struct ctf_node root;
42 };
43
44 #endif /* _CTF_PARSER_H */
This page took 0.030619 seconds and 5 git commands to generate.