Next: Precomputation and LHS terminals, Previous: Motivation of LHS terminals, Up: LHS terminals [Contents][Index]
The terminal status of a symbol is a boolean, which is true iff the symbol is a terminal. The terminal status of a symbol is locked iff the terminal status of that symbol cannot be changed.
On success, does the following:
marpa_r_alternative()
method,
a symbol must be a terminal.
Hard fails with error code MARPA_ERR_TERMINAL_IS_LOCKED
if the symbol with sym_id
is locked,
and the terminal status
of the symbol with sym_id
is not equal to value.
Also hard fails if
value is not a boolean or if g is precomputed.
Return value: On success, value, which will be 1 or 0. On soft failure, -1. On hard failure, -2.