mirror of https://github.com/YosysHQ/yosys.git
allow enum typedefs
This commit is contained in:
parent
16ea4ea61a
commit
5ddf84d430
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue