Next: , Previous: , Up: Earlemes   [Contents][Index]


5.1.2 The latest earleme

The latest Earley set is the Earley set completed most recently. This is initially the Earley set at location 0. The latest Earley set is always the Earley set with the highest ordinal, and the Earley set with the highest earleme location. The latest earleme is the earleme of the latest Earley set. If there is an Earley set at the current earleme, it is the latest Earley set and the latest earleme is equal to the current earleme. There is never an Earley set after the current earleme, and therefore the latest Earley set is never after the current earleme. The marpa_r_start input() and marpa_r_earleme_complete() methods are only ones that change the latest earleme. See marpa_r_start_input() and marpa_r_earleme_complete().

The latest earleme is different from the current earleme if and only if there is no Earley set at the current earleme. A different end of parsing can be specified, but by default, parsing is of the input in the range from earleme 0 to the latest earleme.