func NewGrammar(configuration *Config) *Grammar { var _ret Grammar _ret.handle = C.marpa_g_new(&configuration.handle) if _ret.handle == (C.Marpa_Grammar)(unsafe.Pointer(uintptr(0))) { panic("ERROR: marpa_g_new") } return &_ret }
func NewGrammar(configuration **Config) *Grammar { var _ret Grammar _ret.handle = C.marpa_g_new(configuration.handle) return _ret }
func NewGrammar(config *Config) Grammar { var grammar Grammar grammar.grammar = C.marpa_g_new(&config.config) return grammar }