Parser no longer returns io.EOF when done parsing

This commit is contained in:
Sasha Koshka 2022-10-12 14:27:26 -04:00
parent ccc303d93c
commit 15fa122547

View File

@ -74,6 +74,8 @@ func Fetch (modulePath string, skim bool) (tree SyntaxTree, err error) {
// parse the tokens into the module
err = parser.parse(sourceFile)
if err == io.EOF { err = nil}
if err != nil { return }
}
tree = parser.tree