2 * SPDX-License-Identifier: MIT
4 * Copyright 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 #include "common/macros.h"
14 #ifndef YY_TYPEDEF_YY_SCANNER_T
15 #define YY_TYPEDEF_YY_SCANNER_T
16 typedef void* yyscan_t
;
19 struct ctf_scanner_scope
;
20 struct ctf_scanner_scope
{
21 struct ctf_scanner_scope
*parent
;
28 struct ctf_scanner_scope root_scope
;
29 struct ctf_scanner_scope
*cs
;
30 struct objstack
*objstack
;
34 struct ctf_scanner
*ctf_scanner_alloc(void);
37 void ctf_scanner_free(struct ctf_scanner
*scanner
);
40 int ctf_scanner_append_ast(struct ctf_scanner
*scanner
, FILE *input
);
43 struct ctf_ast
*ctf_scanner_get_ast(struct ctf_scanner
*scanner
)
49 int is_type(struct ctf_scanner
*scanner
, const char *id
);
51 #endif /* _CTF_SCANNER_H */