From 7ebd145ad0cc14d2db6b1c600ad57f742e4edb14 Mon Sep 17 00:00:00 2001 From: serr Date: Tue, 13 May 2025 19:03:39 +0300 Subject: [PATCH] import bug fixes --- analyzers/test/test.y | 1 - tests/main.go | 5 ----- tests/test_blocks.txt | 2 ++ 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/analyzers/test/test.y b/analyzers/test/test.y index fdccd53..1b320a3 100644 --- a/analyzers/test/test.y +++ b/analyzers/test/test.y @@ -111,7 +111,6 @@ package_declaration: ; import_declaration: - | IMPORT { printf("\033[1;36mHELLO, IMPORT BLOCK\n\033[0m"); } LPAREN RPAREN { printf("\033[1;36mBY, IMPORT BLOCK\n\n\033[0m"); } | IMPORT { printf("\033[1;36mHELLO, IMPORT BLOCK\n\033[0m"); } import { printf("\033[1;36mBY, IMPORT BLOCK\n\n\033[0m"); } | IMPORT { printf("\033[1;36mHELLO, IMPORT BLOCK\n\033[0m"); } LPAREN import_list RPAREN { printf("\033[1;36mBY, IMPORT BLOCK\n\n\033[0m"); } ; diff --git a/tests/main.go b/tests/main.go index 8bf0a52..182fa29 100644 --- a/tests/main.go +++ b/tests/main.go @@ -2,11 +2,6 @@ package main import "fmt" -func test(a string, b int) int { - -} - func main() { - test("123", 2) fmt.Println("hello, sailor!") } diff --git a/tests/test_blocks.txt b/tests/test_blocks.txt index 14c0f50..dffd619 100644 --- a/tests/test_blocks.txt +++ b/tests/test_blocks.txt @@ -1,5 +1,7 @@ package main; +import "fmt"; + func test_func(a string, b int, c uint16) int { var x int = 42; y := "hello";