// data is a pointer to a 'SParserParam' structure
//#define YYPARSE_PARAM scanner
-// the argument for the 'yylex' function
-#define YYLEX_PARAM ((struct ctf_scanner *) scanner)->scanner
-
struct ctf_node;
struct ctf_parser;
struct ctf_node *parent;
struct bt_list_head siblings;
struct bt_list_head tmp_head;
- struct bt_list_head gc;
unsigned int lineno;
enum node_type type;
UNARY_SIGNED_CONSTANT,
UNARY_UNSIGNED_CONSTANT,
UNARY_SBRAC,
- UNARY_NESTED,
} type;
union {
/*
int64_t signed_constant;
uint64_t unsigned_constant;
struct ctf_node *sbrac_exp;
- struct ctf_node *nested_exp;
} u;
enum {
UNARY_LINK_UNKNOWN = 0,
struct ctf_ast {
struct ctf_node root;
- struct bt_list_head allocated_nodes;
};
const char *node_type(struct ctf_node *node);