Consider character-level reader with state type #62
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
seq-lisp-2-backport
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/seq-lisp#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Summary
Evaluate whether adopting a character-level reader architecture with an explicit state type would improve maintainability over the current tokenizer approach.
Motivation
seq-lisp-2's reader uses a
Reader { input, pos }state type with:is-whitespace,is-delimiter, etc.)The current seq-lisp reader works well but uses a separate tokenizer → parser pipeline. The seq-lisp-2 approach is arguably more maintainable and makes position tracking (needed for LSP features) more natural.
Scope
Notes
Lower priority — the current reader works fine and this would be a significant rewrite for primarily architectural benefit. Most valuable if LSP features increasingly need precise source positions.
Inspired by
seq-lisp-2/src/reader.seq.