Jean-Damien requested a $slr->g1_location_to_span() method. It's in
commit d1332c18d6f8aac4c9b33be945bea41d071a866c, and is even tested a
bit. :-) It is simple:
sub Marpa::R2::Scanless::R::g1_location_to_span {
my ( $self, $g1_location ) = @_;
my $thin_self = $self->[Marpa::R2::Inner::Scanless::R::C];
return $thin_self->span( $g1_location );
}
It returns an *array* of two values:
($start, $length). In
situations where you think of input stream location as a single number,
you'll usually conceptualize it as the end of this span:
$start+$length.
G1 location 0 (Earley set 0) is a special case: it returns
(0,0).\
-- jeffrey