TypealiasGrammar
Location
The index type of the ParsingInput.source
this rule expects.
Available when
Element
conforms toParsingRule
typealias Location = Element.Location
Overview
Parsing rules must be associated with a source location type because some applications may wish to store these indices in the returned Construction
s. If the source location type were not fixed, then different calls to parse(_:)
could potentially return constructions of varying types, which would require additional abstraction, which would be inefficient.