import bug fixes

master
serr 2025-05-13 19:03:39 +03:00
parent 39410a12a3
commit 7ebd145ad0
3 changed files with 2 additions and 6 deletions

View File

@ -111,7 +111,6 @@ package_declaration:
; ;
import_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"); } 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"); } | IMPORT { printf("\033[1;36mHELLO, IMPORT BLOCK\n\033[0m"); } LPAREN import_list RPAREN { printf("\033[1;36mBY, IMPORT BLOCK\n\n\033[0m"); }
; ;

View File

@ -2,11 +2,6 @@ package main
import "fmt" import "fmt"
func test(a string, b int) int {
}
func main() { func main() {
test("123", 2)
fmt.Println("hello, sailor!") fmt.Println("hello, sailor!")
} }

View File

@ -1,5 +1,7 @@
package main; package main;
import "fmt";
func test_func(a string, b int, c uint16) int { func test_func(a string, b int, c uint16) int {
var x int = 42; var x int = 42;
y := "hello"; y := "hello";