Skip to content

Commit

Permalink
fixed repl issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonak-Adipta-Kalita committed Apr 8, 2023
1 parent 48fad4e commit 31f9a7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repl/repl.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const PROMPT = ">>> "

func Start(in io.Reader, out io.Writer) {
scanner := bufio.NewScanner(in)
env := object.NewEnvironment()

for {
fmt.Print(PROMPT)

scanned := scanner.Scan()
env := object.NewEnvironment()

if !scanned {
return
Expand Down

0 comments on commit 31f9a7d

Please sign in to comment.