Used solely by the count meta-variable expression, counts the outer-most repetitions at a
given optional nested depth.
Given a tree, make sure that all sequences have the same length as the matches for the
appropriate meta-vars in interpolations.
Lookup the meta-var named ident and return the matched token tree from the invocation using
the set of matches interpolations.
Returns a
NamedMatch item declared on the LHS given an arbitrary
IdentUsually metavariables $var produce interpolated tokens, which have an additional place for
keeping both the original span and the metavariable span. For tt metavariables that’s not the
case however, and there’s no place for keeping a second span. So we try to give the single
produced span a location that would be most useful in practice (the hygiene part of the span
must not be changed).
Used by meta-variable expressions when an user input is out of the actual declared bounds. For
example, index(999999) in an repetition of only three elements.
This can do Macro-By-Example transcription.