mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 02:45:52 +00:00
allow enum typedefs
This commit is contained in:
parent
16ea4ea61a
commit
5ddf84d430
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue