Пример #1
0
func (v *Value) RuleIsValuedSet(rule_id RuleID, value int) int {
	return int(C.marpa_v_rule_is_valued_set(v.handle, C.Marpa_Rule_ID(rule_id), C.int(value)))
}
Пример #2
0
func (g *Grammar) RuleNullHigh(rule_id RuleID) int {
	return int(C.marpa_g_rule_null_high(g.handle, C.Marpa_Rule_ID(rule_id)))
}
Пример #3
0
func (g *Grammar) RuleNullHighSet(rule_id RuleID, flag int) int {
	return int(C.marpa_g_rule_null_high_set(g.handle, C.Marpa_Rule_ID(rule_id), C.int(flag)))
}
Пример #4
0
func (g *Grammar) RuleRank(rule_id RuleID) Rank {
	return Rank(C.marpa_g_rule_rank(g.handle, C.Marpa_Rule_ID(rule_id)))
}
Пример #5
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)))
}
Пример #6
0
func (g *Grammar) SequenceMin(rule_id RuleID) int {
	return int(C.marpa_g_sequence_min(g.handle, C.Marpa_Rule_ID(rule_id)))
}
Пример #7
0
func (g *Grammar) SequenceSeparator(rule_id RuleID) int {
	return int(C.marpa_g_sequence_separator(g.handle, C.Marpa_Rule_ID(rule_id)))
}
Пример #8
0
func (g *Grammar) RuleRhs(rule_id RuleID, ix int) SymbolID {
	return SymbolID(C.marpa_g_rule_rhs(g.handle, C.Marpa_Rule_ID(rule_id), C.int(ix)))
}
Пример #9
0
func (g *Grammar) RuleIsProperSeparation(rule_id RuleID) int {
	return int(C.marpa_g_rule_is_proper_separation(g.handle, C.Marpa_Rule_ID(rule_id)))
}
Пример #10
0
func (g *Grammar) RuleLength(rule_id RuleID) int {
	return int(C.marpa_g_rule_length(g.handle, C.Marpa_Rule_ID(rule_id)))
}
Пример #11
0
func (g *Grammar) RuleLhs(rule_id RuleID) SymbolID {
	return SymbolID(C.marpa_g_rule_lhs(g.handle, C.Marpa_Rule_ID(rule_id)))
}
Пример #12
0
func (g *Grammar) RuleIsProductive(rule_id RuleID) int {
	return int(C.marpa_g_rule_is_productive(g.handle, C.Marpa_Rule_ID(rule_id)))
}
Пример #13
0
func (g *Grammar) RuleIsLoop(rule_id RuleID) int {
	return int(C.marpa_g_rule_is_loop(g.handle, C.Marpa_Rule_ID(rule_id)))
}
Пример #14
0
func (g *Grammar) RuleIsNulling(ruleid RuleID) int {
	return int(C.marpa_g_rule_is_nulling(g.handle, C.Marpa_Rule_ID(ruleid)))
}
Пример #15
0
func (g *Grammar) RuleIsAccessible(rule_id RuleID) int {
	return int(C.marpa_g_rule_is_accessible(g.handle, C.Marpa_Rule_ID(rule_id)))
}
Пример #16
0
func (v *Value) RuleIsValued(rule_id RuleID) int {
	return int(C.marpa_v_rule_is_valued(v.handle, C.Marpa_Rule_ID(rule_id)))
}