Wilfred / bfc

An industrial-grade brainfuck compiler
https://bfc.wilfred.me.uk
GNU General Public License v2.0
508 stars 30 forks source link

Can this become a library on crates.io? #22

Open vcfxb opened 6 years ago

vcfxb commented 6 years ago

I was wondering if this could be a library on crates.io with docs on docs.rs so that other rust developers can use this in their projects.

One of my projects (the wright programming language) is a language that could potentially benifit from targetting brainfuck as an itermediate, and I would like to use your compiler in the process.

Wilfred commented 6 years ago

Ooh, that sounds like a really neat idea! I'd be very up for supporting this use case. Can you describe what sort of API you'd want?

vcfxb commented 6 years ago

The minimum API I want would expose an interface for reading/writing to and from brainfuck files and representations, as well as translating them to an LLVM Intermediate Representation (usable via the llvm-sys crate). Hope it's not too much to ask. I am willing to contribute if you want.

vcfxb commented 6 years ago

This could also perhaps expose interfaces to the optimizations and warnings emitted by bfc.