Ignore empty parameters in Verilog module instantiations
authorClaire Xenia Wolf <claire@symbioticeda.com>
Thu, 1 Oct 2020 16:26:53 +0000 (18:26 +0200)
committerClaire Xenia Wolf <claire@symbioticeda.com>
Thu, 1 Oct 2020 16:27:16 +0000 (18:27 +0200)
Fixes #2394

Signed-off-by: Claire Xenia Wolf <claire@symbioticeda.com>
frontends/verilog/verilog_parser.y

index 8e5236639e8cc81a0c0e6369fec2ba211d99c9f2..678ce6c8759ae572dc5b7b0d5192b76aebc631b3 100644 (file)
@@ -1891,6 +1891,9 @@ cell_parameter:
                astbuf1->children.push_back(node);
                node->children.push_back($1);
        } |
+       '.' TOK_ID '(' ')' {
+               // just ignore empty parameters
+       } |
        '.' TOK_ID '(' expr ')' {
                AstNode *node = new AstNode(AST_PARASET);
                node->str = *$2;