Exposed a simple compiler API

Signed-off-by: Diwank Singh <diwank.singh@gmail.com>