is it possible for me to write a lexer and parser, and then lower it to MIR, and have rustc start compiling it as if it was a rust program? I know miri can accomplish this, but it's interpreted.
@Keith Yeung there's nothing preventing that afaik; however, everything in rustc's internals is ofc highly unstable.
ok, if so, is there a guide lying around that describes how one might be able to do so?
or if there's a source file in particular that i should look at?
maybe https://rust-lang.github.io/rustc-guide/ has something; the rustc driver infrastructure is beyond my expertise, maybe @Zoxc can help
Using rustc as a backend sounds like a terrible idea =P
huh, perhaps i should be asking whether there are good crates out there that provides good rust bindings to LLVM instead