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

Support compilation of single source files from stdin #150

Open
fmease opened this issue Jul 13, 2022 · 1 comment
Open

Support compilation of single source files from stdin #150

fmease opened this issue Jul 13, 2022 · 1 comment

Comments

@fmease
Copy link
Owner

fmease commented Jul 13, 2022

The command lushui file <build|check|document|run> - (where PATH is a dash) should make the driver read the source code from stdin. The SourceFile type/path should be set to Stdin (to be created). In diagnostics, that file type should be displayed as <stdin>, ⟨stdin⟩ or something similar (ideally sth. that wouldn't be a valid file path).

@fmease
Copy link
Owner Author

fmease commented Sep 15, 2022

Fyi, rustc does support this calling the file <anon> and the crate rust_out (in turn calling the output file rust_out, librust_out.rlib, etc.)

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

No branches or pull requests

1 participant