7 * Copyright 2011-2012 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9 * Permission is hereby granted, free of charge, to any person obtaining a copy
10 * of this software and associated documentation files (the "Software"), to deal
11 * in the Software without restriction, including without limitation the rights
12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 * copies of the Software, and to permit persons to whom the Software is
14 * furnished to do so, subject to the following conditions:
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
21 #include "common/macros.h"
24 #ifndef YY_TYPEDEF_YY_SCANNER_T
25 #define YY_TYPEDEF_YY_SCANNER_T
26 typedef void* yyscan_t
;
29 struct ctf_scanner_scope
;
30 struct ctf_scanner_scope
{
31 struct ctf_scanner_scope
*parent
;
38 struct ctf_scanner_scope root_scope
;
39 struct ctf_scanner_scope
*cs
;
40 struct objstack
*objstack
;
43 struct ctf_scanner
*ctf_scanner_alloc(void);
44 void ctf_scanner_free(struct ctf_scanner
*scanner
);
45 int ctf_scanner_append_ast(struct ctf_scanner
*scanner
, FILE *input
);
48 struct ctf_ast
*ctf_scanner_get_ast(struct ctf_scanner
*scanner
)
54 int is_type(struct ctf_scanner
*scanner
, const char *id
);
56 #endif /* _CTF_SCANNER_H */