Introduction - If you have any usage issues, please Google them yourself
Recursive subroutine method to design a syntax analysis program, top-down analysis. 1, using recursive descent parsing algorithm analysis of the expression grammar: exp:: = exp addop term | term addop:: =+ |- term:: = term mulop factor | factor mulop:: =* |/factor:: = (exp) | number of which is the number of decimal number can number string (integer can be), so here also need a small lexical analyzer to get the number value. 2, the lexical analyzer in subroutine form, when the need for lexical analysis of a call 3, able to recognize right and wrong expression 4, during the course of parsing, calculating import value of the expression.