Esempio n. 1
0
func (g *Grammar) RuleLength(rule_id RuleID) int {
	return int(C.marpa_g_rule_length(g.handle, C.Marpa_Rule_ID(rule_id)))
}
Esempio n. 2
0
func (g Grammar) RuleLength(sym_id RuleID) int {
	return int(C.marpa_g_rule_length(g.grammar, sym_id.id))
}