[#10] Make TokenKind and ExpressionKind more generic #12
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mle/selkirk!12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "10-iterator-adapters"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #10
Tokenizertrait withIterator<Item = (Token<'s>, T)>, whereTcontains any additional data about the token (e.g. a token kind, specific to that tokenizer)ParseContexttrait, which corresponds to theTin the tokenizer iteratorParseContexttrait:Term(replacing the specific type variants onExpression),Precedence(replacing thePrecedenceenum), andError(replacing some specific variants onParseErrorKind)Parserimplementation to no longer rely onNullexpressions to support mixed-arity operators and possibly-empty delimiters.Expressionenum with a genericTermvariant