Tried fixing complaining from vscode

main
Øyvind Skaaden 2022-02-13 19:04:28 +01:00
parent 35fb48f8b8
commit 36afeecae9
1 changed files with 12 additions and 0 deletions

View File

@ -14,6 +14,18 @@
%nonassoc IF THEN %nonassoc IF THEN
%nonassoc ELSE %nonassoc ELSE
/* Tried fixing vscode complaining about the type for the non-terminals, didn't work
%union {
node_t* node;
}
%type <node> global_list global
%type <node> statement_list print_list expression_list variable_list argument_list parameter_list declaration_list
%type <node> function statement block
%type <node> assignment_statement return_statement print_statement null_statement if_statement while_statement
%type <node> relation expression declaration print_item identifier number string
*/
%% %%
program: program: