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

Command line arguments? #3

Open
MegaApuTurkUltra opened this issue Jan 24, 2018 · 1 comment
Open

Command line arguments? #3

MegaApuTurkUltra opened this issue Jan 24, 2018 · 1 comment

Comments

@MegaApuTurkUltra
Copy link

Does this have support for accessing additional command line args from the brainfuck program? For example

$ ./systemf program.bf arg1 arg2 arg3
@ajyoon
Copy link
Owner

ajyoon commented Feb 7, 2018

This is not currently supported. There needs to be a way to signal the interpreter to load the arg data into the initial program tape. I don't see a way to do this without extending the language further or by adding a special switch like $ ./systemf program.bf --args arg1 arg2 arg3 ... This switch option wouldn't be too difficult, happy to provide support if you want to work on a PR.

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