Beispiel #1
0
func NewBocage(r *Recognizer, earley_set_ID EarleySetID) (*Bocage, error) {
	var _ret Bocage
	_ret.handle = C.marpa_b_new(r.handle, C.Marpa_Earley_Set_ID(earley_set_ID))
	if _ret.handle == (C.Marpa_Bocage)(unsafe.Pointer(uintptr(0))) {
		return nil, errors.New("marpa_b_new failed")
	}
	return &_ret, nil
}
Beispiel #2
0
func NewBocage(r *Recognizer, earley_set_ID EarleySetID) *Bocage {
	var _ret Bocage
	_ret.handle = C.marpa_b_new(r.handle, C.Marpa_Earley_Set_ID(earley_set_ID))
	return _ret

}