3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-08 18:31:51 +00:00

allow enum typedefs

This commit is contained in:
Jeff Wang 2020-01-16 17:17:42 -05:00 committed by Jeff Wang
parent 16ea4ea61a
commit 5ddf84d430

View file

@ -1523,7 +1523,12 @@ typedef_decl:
ast_stack.back()->children.push_back(new AstNode(AST_TYPEDEF, astbuf1));
ast_stack.back()->children.back()->str = *$4;
};
} |
TOK_TYPEDEF enum_type TOK_ID ';' {
ast_stack.back()->children.push_back(new AstNode(AST_TYPEDEF, astbuf1));
ast_stack.back()->children.back()->str = *$3;
}
;
cell_stmt:
attr TOK_ID {