feat: spans #34
Labels
A-combinators
Area: Issues related to combinators
A-parsers
Area: Issues related to parsers
C-feature-accepted
Category: A feature request that has been accepted and awaiting implementation
P-high
Priority: High
R-released
Semantic Release: Success
After working with some rust parser combinator libraries like chumsky, I feel like it would be really handy to provide capabilities to either produce spans by default, or allow to map with spans.
A span is simply a pair of numbers, a tuple like
[start: number, end: number]
, which points to some range in the source code we are parsing or parsed. That is actually a must for quality error reporting and diagnostics.The text was updated successfully, but these errors were encountered: