示例#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)))
}