Skip to content

remove unused readers parameters from build functions#7042

Merged
nwt merged 4 commits into
mainfrom
remove-readers
Jun 8, 2026
Merged

remove unused readers parameters from build functions#7042
nwt merged 4 commits into
mainfrom
remove-readers

Conversation

@nwt

@nwt nwt commented Jun 6, 2026

Copy link
Copy Markdown
Member

Depends on #7041.

nwt added 3 commits June 5, 2026 22:36
When its extInput parameter is true, compiler/semantic.Analyze prepends
an ast.DefaultScan to the AST.  Change it to prepend an ast.FileScan for
standard input instead.

To allow that FileScan to access sio.Readers passed to
compiler.CompileWithAST, add a new runtime/exec.Environment.Stdin field,
set the field in CompileWithAST if the length of the readers paramter is
nonzero, and return a scanner for it in Environment.Open if the field is
set when opening standard input.
They're unneeded since ast.DefaultScan is no longer used.
@nwt nwt requested a review from a team June 6, 2026 02:55
Base automatically changed from remove-DefaultScan to main June 8, 2026 16:33
@nwt nwt merged commit 28c6f25 into main Jun 8, 2026
2 checks passed
@nwt nwt deleted the remove-readers branch June 8, 2026 16:53
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