diff --git a/c/src/parser.bison b/c/src/parser.bison index 81c6085..f8c5265 100644 --- a/c/src/parser.bison +++ b/c/src/parser.bison @@ -79,7 +79,7 @@ program : expr_list { expr_copy(parse_result, $1); } ; expr_list : expr expr_list { $$ = $1; $1->next = $2; } - | { $$ = NULL; } + | %empty { $$ = NULL; } ; expr : oper ttk_register TOKEN_COMMA value { $$ = expr_create_instruction($1, $2, $4); }