Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import (
|
|
"bufio"
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func (self *JSRepl) read() {
|
|
reader := bufio.NewReader(os.Stdin)
|
|
for {
|
|
fmt.Printf(self.prompt)
|
|
str, _, err := reader.ReadLine()
|
|
if err != nil {
|
|
fmt.Println("Error reading input", err)
|
|
} else {
|
|
self.parseInput(string(str))
|
|
}
|
|
}
|
|
}
|
|
|