Introduction - If you have any usage issues, please Google them yourself
Calculator design (the use of lexical analysis & syntax analysis method): 1, create a class for every possible identify legitimate word, and class attributes, including the respective code and value of the word. To build the exception class, in order to achieve the fault tolerance of the calculator. To build a lexical analysis class, used to extract a word. 4 to construct the table of precedence relations between each word in the expression. 5, to build a grammar class, and the Statute of the expression. This type of call the lexical class to obtain word, the query that the priority relational tables to carried out the Statute of the operating. 6, to build a computing class, calls the parser class to the calculation. 7, to build a GUI class, design a good user interface and built-in computing class, computing capabilities to achieve the interface operation.