From 36afeecae95a90561ca9c72a1920bc74fd72e557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind?= Date: Sun, 13 Feb 2022 19:04:28 +0100 Subject: [PATCH] Tried fixing complaining from vscode --- exercises/02/vslc/src/parser.y | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: