Simple parser implementation