Skip to content

main.go and precompiler.go became same

Compare
Choose a tag to compare
@DQNEO DQNEO released this 10 Mar 10:03
· 879 commits to main since this release
$ diff -U 0 pre/precompiler.go main.go
--- pre/precompiler.go	2021-03-09 09:31:23.000000000 +0900
+++ main.go	2021-03-09 09:30:50.000000000 +0900
@@ -8,3 +8,2 @@
-	"go/ast"
-	"go/parser"
-	"go/token"
+	"github.com/DQNEO/babygo/lib/ast"
+	"github.com/DQNEO/babygo/lib/token"
@@ -20 +19 @@
-const ProgName string = "pre"
+const ProgName string = "babygo"
@@ -4399,7 +4397,0 @@
-
-// tweak to reduce diff with main.go
-const parserImportsOnly = parser.ImportsOnly
-
-func parserParseFile(fset *token.FileSet, filename string, src interface{}, mode parser.Mode) (*ast.File, error) {
-	return parser.ParseFile(fset, filename, src, mode)
-}