示例#1
0
func (g *Grammar) Event(event *Event, ix int) EventType {
	var evt C.Marpa_Event
	ev_type := EventType(C.marpa_g_event(g.handle, &evt, C.int(ix)))
	event.handle = evt
	return ev_type
}
示例#2
0
func (g *Grammar) Event(event **Event, ix int) EventType {
	return EventType(C.marpa_g_event(g.handle, event.handle, C.int(ix)))
}