This repository has been archived on 2022-08-30. 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 15:28:29 +00: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 15:28:29 +00:00
// var moduleTokens []lexer.Token
for _, entry := range moduleFiles {
if filepath.Ext(entry.Name()) != ".arf" || entry.IsDir() {
continue
}
2022-08-10 15:28:29 +00:00
// tokens, err := lexer.Tokenize()
// if err != nil { return err }
}
return
}