예제 #1
0
func NewTree(o *Order) *Tree {
	var _ret Tree
	_ret.handle = C.marpa_t_new(o.handle)
	if _ret.handle == (C.Marpa_Tree)(unsafe.Pointer(uintptr(0))) {
		panic("ERROR: marpa_t_new")
	}
	return &_ret
}
예제 #2
0
func NewTree(o *Order) *Tree {
	var _ret Tree
	_ret.handle = C.marpa_t_new(o.handle)
	return _ret

}