Previous: , Up: Bocage methods   [Contents][Index]


21.5 Accessors

Accessor function: int marpa_b_ambiguity_metric (Marpa_Bocage b)

On success, returns an ambiguity metric. If the parse is unambiguous, the metric is 1. If the parse is ambiguous, the metric is 2 or greater, and is otherwise unspecified. See Better defined ambiguity metric.

Return value: On success, the ambiguity metric, which is always non-negative. On hard failure, -2.

Accessor function: int marpa_b_is_null (Marpa_Bocage b)

Return value On success, a non-negative integer: 1 or greater if the bocage is for a null parse, and 0 if the bocage is not for a null parse. On hard failure, -2.