From 7b79636681cb3acc03087e437cb5ede5ae3355fe Mon Sep 17 00:00:00 2001 From: Hayodea Hakol Date: Tue, 14 Jan 2025 23:14:19 -0400 Subject: [PATCH] devSpec:yacc: Put param after params --- hcore/deviceManager/deviceSpecp.yy | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/hcore/deviceManager/deviceSpecp.yy b/hcore/deviceManager/deviceSpecp.yy index 3cc9bfd..4716840 100644 --- a/hcore/deviceManager/deviceSpecp.yy +++ b/hcore/deviceManager/deviceSpecp.yy @@ -127,18 +127,6 @@ opt_params: | /* empty */ { $$ = new std::vector>(); } ; -param: - STRING { - $$ = new std::pair($1, ""); - } - | STRING EQUALS { - $$ = new std::pair($1, ""); - } - | STRING EQUALS STRING { - $$ = new std::pair($1, $3); - } - ; - params: param { $$ = new std::vector>(); @@ -152,4 +140,16 @@ params: } ; +param: + STRING { + $$ = new std::pair($1, ""); + } + | STRING EQUALS { + $$ = new std::pair($1, ""); + } + | STRING EQUALS STRING { + $$ = new std::pair($1, $3); + } + ; + %%