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

(compiler) Add -c flag for "compile and assemble only" #455

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

perlun
Copy link
Collaborator

@perlun perlun commented Apr 11, 2024

This commit is a small step towards #454. By adding this flag, it's possible to "use Perlang as a transpiler" only. Okay, a little more than a transpiler, since it also emits ELF object files. :) But still, it helps us towards a state where we can gradually, incrementally rewrite parts of the Perlang compiler in Perlang. Oh, the joy! Oh, the glory!

This commit is a small step towards #454. By adding this flag, it's
possible to "use Perlang as a transpiler" only. Okay, a _little_ more
than a transpiler, since it also emits ELF object files. :) But still,
it helps us towards a state where we can gradually, incrementally
rewrite parts of the Perlang compiler in Perlang. Oh, the joy! Oh, the
glory!
@perlun perlun added the experimental compilation Issues which are relevant when using experimental compilation label Apr 11, 2024
@perlun perlun added this to the 0.5.0 milestone Apr 11, 2024
@perlun perlun merged commit 682475f into master Apr 11, 2024
14 checks passed
@perlun perlun deleted the feature/add-perlang-c-flag branch April 11, 2024 19:50
// {
// Console.Error.WriteLine("ERROR: When the -c option is used, no script arguments can be provided since the Perlang script/program will not get executed");
// return Task.FromResult(1);
// }
Copy link
Collaborator Author

@perlun perlun Apr 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh, did I just (well, yesterday) merge in commented-out code? 🙈 Will go away in #456 for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental compilation Issues which are relevant when using experimental compilation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant