This repository has been archived on 2022-08-29. You can view files and clone it, but cannot push or open issues or pull requests.
arf/main.go

24 lines
487 B
Go
Raw Normal View History

package arf
import "os"
import "io"
import "path/filepath"
2022-08-10 09:28:29 -06:00
// import "github.com/sashakoshka/arf/lexer"
func CompileModule (modulePath string, output io.Writer) (err error) {
moduleFiles, err := os.ReadDir(modulePath)
if err != nil { return err }
2022-08-10 09:28:29 -06:00
// var moduleTokens []lexer.Token
for _, entry := range moduleFiles {
if filepath.Ext(entry.Name()) != ".arf" || entry.IsDir() {
continue
}
2022-08-10 09:28:29 -06:00
// tokens, err := lexer.Tokenize()
// if err != nil { return err }
}
return
}