static bool parse_statement(parser_t *parser, ast_block *block, ast_expression **out, bool allow_cases)
{
+ int cvq;
ast_value *typevar = NULL;
*out = NULL;
*out = NULL;
return true;
}
+ else if (parser->tok == TOKEN_IDENT && !strcmp(parser_tokval(parser), "var"))
+ {
+ goto ident_var;
+ }
else if (parser->tok == TOKEN_KEYWORD)
{
if (!strcmp(parser_tokval(parser), "local") ||
!strcmp(parser_tokval(parser), "const") ||
!strcmp(parser_tokval(parser), "var"))
{
- int cvq;
+ident_var:
if (parser_tokval(parser)[0] == 'c')
cvq = CV_CONST;
else if (parser_tokval(parser)[0] == 'v')