the paser algrithm of the flowchart