Project Lombok does attach to the compiler. It is using Annotations to trigger it (which is what you want to avoid, I know), but within the source code you will find how it is attaching to the compiler. There is special code for the Eclipse compiler and the Sun compiler, there seems to be no common 'public compiler API' (except for starting the compiler of course).
Possibly javax.script works for you. In this case you can use Bindings, which let you define a callback mechanism for unknown variables. But without details what exactly you want to do it's hard to tell if this is an option for you.