Preliminary parser implementation