This PR changes the return type of the compiler to Result allowing us to use the question mark operator.
Closes LOOP-195