refactor how repl works
This commit is contained in:
@@ -518,7 +518,7 @@ func EvalModule(name string) object.Object {
|
||||
}
|
||||
|
||||
l := lexer.New(string(b))
|
||||
p := parser.New(l)
|
||||
p := parser.New(fmt.Sprintf("<module %s>", name), l)
|
||||
|
||||
module := p.ParseProgram()
|
||||
if len(p.Errors()) != 0 {
|
||||
|
||||
Reference in New Issue
Block a user