parser: Fix UDP registered output syntax
The parser currently expects `reg output` for UDP registered output. But the correct syntax is `output reg`. Fix this to accept the correct syntax. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
parent
59b3e220ad
commit
aaffceff42
2
parse.y
2
parse.y
|
|
@ -7007,7 +7007,7 @@ udp_port_decl
|
|||
$$ = tmp;
|
||||
delete[]$2;
|
||||
}
|
||||
| K_reg K_output IDENTIFIER ';'
|
||||
| K_output K_reg IDENTIFIER ';'
|
||||
{ perm_string pname = lex_strings.make($3);
|
||||
PWire*pp = new PWire(pname, NetNet::REG, NetNet::POUTPUT, IVL_VT_LOGIC);
|
||||
vector<PWire*>*tmp = new std::vector<PWire*>(1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue