Finalized basic parser structure for SQL