Пример #1
0
func (g *Grammar) DefaultRankSet(rank Rank) Rank {
	return Rank(C.marpa_g_default_rank_set(g.handle, C.Marpa_Rank(rank)))
}
Пример #2
0
func (g *Grammar) SymbolRankSet(sym_id SymbolID, rank Rank) Rank {
	return Rank(C.marpa_g_symbol_rank_set(g.handle, C.Marpa_Symbol_ID(sym_id), C.Marpa_Rank(rank)))
}
Пример #3
0
func (g *Grammar) RuleRankSet(rule_id RuleID, rank Rank) Rank {
	return Rank(C.marpa_g_rule_rank_set(g.handle, C.Marpa_Rule_ID(rule_id), C.Marpa_Rank(rank)))
}