Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReadList[] refactor #1093

Merged
merged 8 commits into from
Sep 26, 2024
Merged

ReadList[] refactor #1093

merged 8 commits into from
Sep 26, 2024

Conversation

rocky
Copy link
Member

@rocky rocky commented Sep 23, 2024

Move builtin/read.py -> eval/files_io/read.py and start to handle TokenWords.
Add more systemsymbols,
Add a proper error message for TokenWord option processing

I come at this in trying to get lisp.mathics working.

@rocky rocky marked this pull request as draft September 23, 2024 23:44
@rocky rocky requested a review from mmatera September 23, 2024 23:45
@rocky rocky marked this pull request as ready for review September 24, 2024 14:27
@rocky
Copy link
Member Author

rocky commented Sep 24, 2024

What remains is updating pytests and doctests. I will be doing that next. But this is getting rather large so we should consider merging and iterating.

@rocky rocky changed the title Move builtin/read.py -> eval/read.py and ... ReadList[] refactor Sep 25, 2024
@mmatera
Copy link
Contributor

mmatera commented Sep 26, 2024

@rocky, thanks for the work. When you feel it is ready, let's merge and iterate.

start to handle TokenWords.
Add more systemsymbols, and add a proper error message for
TokenWorken option processing
and move parse Read ReadList options to eval.
Move options parsing code from builtin to eval. (It is not used yet
though

Isolate eval code from Read.eval to eval_Read
Correct return type when Read or ReadList file is not found.

ReadList[..., Word] needs to also consider internally default record
separators

Add ReadList sample data
@rocky rocky merged commit 960dc52 into master Sep 26, 2024
11 checks passed
@rocky rocky deleted the file_io_read-refactor branch September 26, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants