Skip to content

SMV: rename vardecls to var_list #1212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/smvlang/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ module_element:
;

var_declaration:
VAR_Token vardecls
VAR_Token var_list
| VAR_Token
;

Expand All @@ -411,6 +411,7 @@ frozenvar_declaration:
simple_var_list:
identifier ':' simple_type_specifier ';'
| simple_var_list identifier ':' simple_type_specifier ';'
;

define_declaration:
DEFINE_Token defines
Expand Down Expand Up @@ -550,8 +551,8 @@ extern_var : variable_identifier EQUAL_Token STRING_Token
}
;

vardecls : vardecl
| vardecls vardecl
var_list : var_decl
| var_list var_decl
;

module_parameter: identifier
Expand Down Expand Up @@ -659,7 +660,7 @@ enum_element: IDENTIFIER_Token
}
;

vardecl : variable_identifier ':' type_specifier ';'
var_decl : variable_identifier ':' type_specifier ';'
{
const irep_idt &identifier=stack_expr($1).get(ID_identifier);
smv_parse_treet::mc_vart &var=PARSER.module->vars[identifier];
Expand Down
Loading