Skip to content

Follow Shen/JIT on REPL stdin EOF - #102

Merged
pyrex41 merged 1 commit into
mainfrom
repl-eof-follow-jit
Nov 6, 2026
Merged

pyrex41 merged 1 commit into
mainfrom
repl-eof-follow-jit

Conversation

@pyrex41

@pyrex41 pyrex41 commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Follows Shen/JIT on REPL stdin EOF: only the REPL's own read checks for EOF, on the first byte of a line, and exits 0. A program reading (stinput) at EOF now sees what any program sees: read-byte gets -1, read and lineread raise empty stream, which trap-error can catch. Passes the 11-case EOF contract (rebuilt from this branch and checked by the integrator).

🤖 Generated with Claude Code

shen-lua's REPL (repl.lua) already treats EOF only in its own line read;
programs reading (stinput) see -1 / empty stream. No in-repl or pending
machinery exists, so this adds the regression spec only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@pyrex41
pyrex41 merged commit 0c2e06f into main Nov 6, 2026
2 checks passed
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.

1 participant