Build a parse tree before compiling