2 * SPDX-License-Identifier: MIT
4 * Copyright 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 #include "common/macros.h"
16 #ifndef YY_TYPEDEF_YY_SCANNER_T
17 # define YY_TYPEDEF_YY_SCANNER_T
18 typedef void *yyscan_t;
21 struct ctf_scanner_scope;
22 struct ctf_scanner_scope
24 struct ctf_scanner_scope *parent;
32 struct ctf_scanner_scope root_scope;
33 struct ctf_scanner_scope *cs;
34 struct objstack *objstack;
37 struct ctf_scanner *ctf_scanner_alloc(void);
39 void ctf_scanner_free(struct ctf_scanner *scanner);
41 int ctf_scanner_append_ast(struct ctf_scanner *scanner, FILE *input);
43 static inline struct ctf_ast *ctf_scanner_get_ast(struct ctf_scanner *scanner)
48 int is_type(struct ctf_scanner *scanner, const char *id);
50 #endif /* _CTF_SCANNER_H */