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

Make CLI interface #33

Open
Sword-Smith opened this issue Aug 21, 2023 · 1 comment
Open

Make CLI interface #33

Sword-Smith opened this issue Aug 21, 2023 · 1 comment
Assignees

Comments

@Sword-Smith
Copy link
Contributor

Sword-Smith commented Aug 21, 2023

It should be possible to run the compiler from the command-line interface where you execute it. The syntax to compile rust source code into tasm should be tasm-lang <file_name.rs> and it then produces a <file_name.tasm> with the containing assembly code. This behavior mimics the way rustc behaves when compiling a single file with no dependencies, so it's a natural interface for us too, as we are also compiling from Rust code.

For now, it doesn't have to have a more advanced interface than that, I think. This solution should include a way of parsing input arguments such that we can use those going forward. In neptune-core we use the clap cargo create for command-line argument parsing, and I think we should do that here too. It should be possible to set if you want to use safe or unsafe lists through the CLI arguments..

@Sword-Smith
Copy link
Contributor Author

@junkicide :)

@junkicide junkicide self-assigned this Aug 29, 2023
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

2 participants