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

Standalone CLI #84

Open
MostAwesomeDude opened this issue Apr 28, 2021 · 6 comments
Open

Standalone CLI #84

MostAwesomeDude opened this issue Apr 28, 2021 · 6 comments

Comments

@MostAwesomeDude
Copy link

I would like to use egg in a compiler for a programming language, but the compiler is written in a language without FFI to Rust or C. I wrote a poor version of egg in the meantime, but it would be ideal to be able to call an egg subprocess or similar.

@mwillsey
Copy link
Member

This feature is one of the next things I would like to work on. We are planning a text-based interface that should be usable over CLI.

@chadbrewbaker
Copy link

https://github.com/uutils/coreutils has a lot of examples. Tell me what features you want and I can write a clap CLI.

@mwillsey
Copy link
Member

mwillsey commented Jun 2, 2021

@chadbrewbaker, the CLI isn't quite the issue, it's the text interface. We need to design a text language (probably some kind of s-expression thing) that can describe programs and commands to optimize them. It will probably look something like SMT-LIB.

@brightly-salty
Copy link

Any update on this? I would also like to use egg in a programming language implementation and would prefer not to have to translate the entirety (the project is written in OCaml).

@mwillsey
Copy link
Member

Hey @brightly-salty, we are planning to work on this, but it's not at the top of my pile right now. Currently, writing your own interface is still the way to go. You may also be interested in https://github.com/Gopiandcode/ego

@brightly-salty
Copy link

Thanks, I hadn't seen that, I think it will suffice for my use case.

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

4 participants