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 flags for extra features #10

Open
JustusAdam opened this issue Oct 2, 2018 · 1 comment
Open

Command line flags for extra features #10

JustusAdam opened this issue Oct 2, 2018 · 1 comment
Assignees

Comments

@JustusAdam
Copy link
Member

JustusAdam commented Oct 2, 2018

We need command line flags to enable experimental/additional features.
Currently this only concerns the tail recursion feature.

However I would suggest we add a general mechanism to enable features.
I was thinking a -f FEATURE flag. With the command line parser we use this can easily be done and the -f flag can the be supplied multiple times to enable different features.

Example:

ohuac build file.ohuac -f TailRec -f SomeOtherFeature
@JustusAdam
Copy link
Member Author

Actually, I just realized that I used -f for the format for code gen in the build command.
I think we should rename the current -f command to -c (for code-gen) and use -f for feature instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants