示例#1
0
文件: calc.go 项目: stephenmw/sickle
func main() {
	input, err := ioutil.ReadAll(os.Stdin)
	if err != nil {
		log.Fatal(err)
	}

	res := sickle.Parse(input, Rule)
	spew.Dump(res)
}
示例#2
0
func main() {
	input, err := ioutil.ReadAll(os.Stdin)
	if err != nil {
		log.Fatal(err)
	}

	res := sickle.Parse(input, Rule)
	log.Print(res.Failed)
}