DQNEO / babygo

babygo👶 is a small Go compiler made from scratch, which can compile itself. It's going to be the smallest and simplest go compiler in the world.
MIT License
296 stars 20 forks source link

Implement `gopackages` subcommand #108

Open DQNEO opened 1 year ago

DQNEO commented 1 year ago
$ gopackages -mode types ./lib/mylib
Go package "github.com/DQNEO/babygo/lib/mylib":
    package mylib
    has complete exported type info
    file /Users/DQNEO/src/github.com/DQNEO/babygo/lib/mylib/mylib.go
    import "github.com/DQNEO/babygo/lib/mylib2"
    import "os"
    func InArray(x string, list []string) bool
    const Msg string
    func Readdirnames(dir string) ([]string, error)
    func SortStrings(ss []string)
    func Sum(a int, b int) int
    func Sum2(a int, b int) int
    type Type struct{Field int}
    method (*Type) Method() int

TODO