예제 #1
0
func (g *Grammar) StartSymbolSet(sym_id SymbolID) SymbolID {
	return SymbolID(C.marpa_g_start_symbol_set(g.handle, C.Marpa_Symbol_ID(sym_id)))
}
예제 #2
0
func (g Grammar) StartSymbolSet(sym SymbolID) SymbolID {
	var symbol SymbolID
	symbol.id = C.marpa_g_start_symbol_set(g.grammar, sym.id)
	return symbol
}