From 362f7c9c45598b429c92e67756f41b690043e0c4 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 22 Mar 2024 16:59:25 +0100 Subject: feat: add initial support for import, provide minimal fmt (#6) The `import` statement is now parsed. It only provides minimal support for the `fmt` package (only `Println` symbol is defined). This should be sufficient to pass a few tests. Full support of package namespaces, source and binary imports will be supported later, based on this work. --- parser/type.go | 1 - 1 file changed, 1 deletion(-) (limited to 'parser/type.go') diff --git a/parser/type.go b/parser/type.go index cd63a46..16390e9 100644 --- a/parser/type.go +++ b/parser/type.go @@ -115,7 +115,6 @@ func (p *Parser) ParseTypeExpr(in Tokens) (typ *vm.Type, err error) { var fields []*vm.Type for _, lt := range in.Split(lang.Semicolon) { types, names, err := p.parseParamTypes(lt, parseTypeType) - fmt.Println("### Names:", names, types) if err != nil { return nil, err } -- cgit v1.2.3