[#3] TokenStream now hold generic variants.

This makes it so that the TokenStream and all it's associated Token
types use a generic when dealing with the variant of the Token.

Span was also given the ability to merge with another span. This
will make it easier to track the span as users group TokenTypes
together to make their domain specific types.

All tests and examples were updated for this change.

The version was incremented to 0.2.0.
This commit is contained in:
2025-04-16 01:54:22 -04:00
parent f924811c47
commit 7c564d18a2
8 changed files with 201 additions and 64 deletions

6
examples/example.md Normal file
View File

@ -0,0 +1,6 @@
# Example File
This is an example file for Rune.
## Rune
The name Rune is inspired by arcane glyphs — ancient symbols holding deep meaning.
Just like your tokens!