#include "ctf-parser.h"
#include "ctf-ast.h"
+/*
+ * TODO: support enum, variant and struct declarations in scopes.
+ */
+
/* Join two lists, put "add" at the end of "head". */
static inline void
_cds_list_splice_tail (struct cds_list_head *add, struct cds_list_head *head)
{ $$ = yylval.gs; }
| _COMPLEX
{ $$ = yylval.gs; }
+ | _IMAGINARY
+ { $$ = yylval.gs; }
| FLOATING_POINT
{ $$ = yylval.gs; }
| INTEGER
$$ = make_node(scanner, NODE_TYPE_SPECIFIER);
$$->u.type_specifier.type = TYPESPEC_COMPLEX;
}
+ | _IMAGINARY
+ {
+ $$ = make_node(scanner, NODE_TYPE_SPECIFIER);
+ $$->u.type_specifier.type = TYPESPEC_IMAGINARY;
+ }
| ID_TYPE
{
$$ = make_node(scanner, NODE_TYPE_SPECIFIER);