From aaffceff4211e602eab07bdd5892965f17d53664 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Mon, 14 Mar 2022 09:50:09 +0100 Subject: [PATCH] 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 --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.y b/parse.y index 98f6ca009..dc4938e7d 100644 --- a/parse.y +++ b/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*tmp = new std::vector(1);