What would it take to be able to pass a stream of AST nodes to the compiler directly?

You can pass “raw code” in FWIW: Feature request: macro to pass code to command