Initial implementation for compiler

Generic implementation for the compiler. Only have definition for AND
operand for now. Will add more and test.