diff --git a/lexor_keyword.gperf b/lexor_keyword.gperf index 26d7c2fea..84ede0a32 100644 --- a/lexor_keyword.gperf +++ b/lexor_keyword.gperf @@ -44,6 +44,7 @@ function, K_function highz0, K_highz0 highz1, K_highz1 if, K_if +ifnone, K_ifnone initial, K_initial inout, K_inout input, K_input diff --git a/parse.y b/parse.y index 47d537b20..c830ac88f 100644 --- a/parse.y +++ b/parse.y @@ -136,7 +136,7 @@ const static struct str_pair_t str_strength = { PGate::STRONG, PGate::STRONG }; %token K_casex K_casez K_cmos K_deassign K_default K_defparam K_disable %token K_edge K_else K_end K_endcase K_endfunction K_endmodule %token K_endprimitive K_endspecify K_endtable K_endtask K_event K_for -%token K_force K_forever K_fork K_function K_highz0 K_highz1 K_if +%token K_force K_forever K_fork K_function K_highz0 K_highz1 K_if K_ifnone %token K_initial K_inout K_input K_integer K_join K_large K_localparam %token K_macromodule %token K_medium K_module K_nand K_negedge K_nmos K_nor K_not K_notif0 @@ -2308,6 +2308,9 @@ specify_item | K_if '(' expression ')' specify_edge_path_decl ';' { } + | K_ifnone specify_simple_path_decl ';' + { + } | K_Shold '(' spec_reference_event ',' spec_reference_event ',' delay_value spec_notifier_opt ')' ';' { delete $7;