Next: The furthest earleme, Previous: The latest earleme, Up: Parse location [Contents][Index]
The
current earleme
is the earleme that Libmarpa is currently working on.
More specifically, it is the one at which new tokens will start.
Since tokens are never zero length, a new token will always end after the
current earleme.
marpa_r_start_input()
initializes the current earleme to 0,
and every call to
marpa_r_earleme_complete()
advances the
current earleme by 1.
The current earleme is set implicitly
by the marpa_start_input()
(see marpa_r_start_input) and
marpa_r_earleme_complete()
(see marpa_r_earleme_complete) methods.
Applications can access the value of the current earleme
via the
marpa_r_current_earleme()
method
(see marpa_r_current_earleme).