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

Add machine readable mode #126

Open
ashpil opened this issue Jan 20, 2021 · 0 comments
Open

Add machine readable mode #126

ashpil opened this issue Jan 20, 2021 · 0 comments

Comments

@ashpil
Copy link

ashpil commented Jan 20, 2021

While working on the gator study, it has come to my attention that gator could benefit from a machine-readable mode, i.e., one where another program can programmatically interact with the gator compiler.

Currently, if one wanted to programmatically compile gator code, one would have to create a temporary file, and then pass that file to gator. Also, if one wanted clean gator-only exceptions, one would have to manually trim the OCaml Failure ... message.

It would be nice if instead of creating a temporary file, one could just either: pass the gator code to compile as an argument, or, pass it to stdin. In this mode, the errors would be trimmed to gator-only messages and sent to stderr. For using ... queries, it would just look for files relative to the gator process's current directory.

I noticed parcel-plugin-lgl also mentions that such a feature would be nice.

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