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";