Lightweight library for CodeGen