Changed main parse() function

Made a non-static version of the main parse function in Parser.java.