Exemplo n.º 1
0
func compile(s parsec.Scanner) parsec.ParsecNode {
	defer func() {
		if r := recover(); r != nil {
			log.Printf("%v at %v", r, s.GetCursor())
		}
	}()
	root, _ := monster.Y(s)
	return root
}
Exemplo n.º 2
0
func compile(s parsec.Scanner) parsec.ParsecNode {
	defer func() {
		if r := recover(); r != nil {
			log.Printf("%v at %v\n", r, s.GetCursor())
			fmt.Printf("%v\n", getStackTrace(2, debug.Stack()))
		}
	}()
	root, _ := monster.Y(s)
	return root
}