Add readtables; implement quote and keyword through readtables. #17
Labels
No labels
bug
duplicate
enhancement
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: simon/post-scarcity#17
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?
As title.
A read table will be a map whose keys are single character strings (or else I implement character objects and make them character objects) and whose value is a function of two arguments, the character read and an input stream.
The reader will check the current readtable — the value of
*readtable*— each time it reads a character, and if there is a binding, will apply the function that is the value of that binding to the character read and the stream, splicing the result returned by the function into its own output. Among other things, this will allow us to implement reading anything that is not a list or an atom in Lisp, making the C reader very simple.