diff --git a/exercises/02/vslc/src/parser.y b/exercises/02/vslc/src/parser.y index da2150b..642e19e 100644 --- a/exercises/02/vslc/src/parser.y +++ b/exercises/02/vslc/src/parser.y @@ -14,6 +14,18 @@ %nonassoc IF THEN %nonassoc ELSE +/* Tried fixing vscode complaining about the type for the non-terminals, didn't work +%union { + node_t* node; +} + +%type global_list global +%type statement_list print_list expression_list variable_list argument_list parameter_list declaration_list +%type function statement block +%type assignment_statement return_statement print_statement null_statement if_statement while_statement +%type relation expression declaration print_item identifier number string +*/ + %% program: