Next: Step location accessors, Previous: Valuator step types, Up: Value methods [Contents][Index]
This section describes the accessors that are basic to stack manipulation.
Return value:
For a MARPA_STEP_RULE
step,
the stack location where the value of first child
can be found.
For other step types, an unspecified value.
Always succeeds.
Return value:
For a MARPA_STEP_RULE
step,
the stack location where the value of the last child
can be found.
For other step types, an unspecified value.
Always succeeds.
Return value:
For MARPA_STEP_RULE
,
MARPA_STEP_TOKEN
,
and MARPA_STEP_NULLING_SYMBOL
steps,
the stack location where the result of the semantics
should be placed.
For other step types, an unspecified value.
Always succeeds.
Return value:
For the
MARPA_STEP_RULE
step,
the ID of the rule.
For other step types, an unspecified value.
Always succeeds.
This macro is rarely needed since its return value
is the same as the value that marpa_v_step()
returns on success.
Return value:
The current step type: MARPA_STEP_TOKEN
, MARPA_STEP_RULE
, etc.
Always succeeds.
Return value:
For the MARPA_STEP_NULLING_SYMBOL
step,
the ID of the symbol.
The value returned is the same as that
returned by the
marpa_v_token()
macro.
For other step types, an unspecified value.
Always succeeds.
Return value:
For the MARPA_STEP_TOKEN
step,
the ID of the token.
The value returned is the same as that
returned by the
marpa_v_symbol()
macro.
For other step types, an unspecified value.
Always succeeds.
Return value:
For the MARPA_STEP_TOKEN
step,
the “token value” that was assigned to the token by
the marpa_r_alternative()
method.
See marpa_r_alternative().
For other step types, an unspecified value.
Always succeeds.
Next: Step location accessors, Previous: Valuator step types, Up: Value methods [Contents][Index]