4. A method for code conversion, comprising: acquiring an initialization node of a code tree to be compiled, and scanning all child nodes under the initialization node of the code tree; recording a total number of the lines of the child nodes; creating a natural language stack according to the total number of the lines; acquiring a natural statement value, which is preset in a child node, and resolving the natural statement value into a natural phrase to be converted; storing into the natural language stack the natural phrase to be converted and popping-up the natural phrases to be converted according to the sequence of the natural language stack; traversing a preset comparison table of reference phrases and natural languages, wherein if the comparison table has a reference phrase same as the natural phrase to be converted, then the natural phrase to be converted will be converted into a syntax phrase corresponding to the reference phrase in the comparison table; resolving and converting a next child node, when the natural language stack is empty, and ending the conversion when both the child node and the natural language stack are empty; creating a syntax phrase stack, which is used to store the converted syntax phrase; creating a syntax statement stack, whenever the natural language stack is empty and the child node has no child nodes on the next layer; popping-up the converted syntax phrase stored in the syntax phrase stack, and joining the syntax phrases into a statement which is pushed into the syntax statement stack; ending the popping-up when all the child nodes of the code tree are converted and the natural language stack is empty; and forming a code file from the statements formed by joining all the syntax phrases corresponding to all the child nodes of the code tree, wherein the creating of the syntax statement stack includes: reading the child node; pushing-in a nested starting syntax symbol before the conversion starts if the child node is a first child node; and pushing-in a nested ending syntax symbol after the conversion ends if the child node is the last one.
4. A method for code conversion, comprising: acquiring an initialization node of a code tree to be compiled, and scanning all child nodes under the initialization node of the code tree; recording a total number of the lines of the child nodes; creating a natural language stack according to the total number of the lines; acquiring a natural statement value, which is preset in a child node, and resolving the natural statement value into a natural phrase to be converted; storing into the natural language stack the natural phrase to be converted and popping-up the natural phrases to be converted according to the sequence of the natural language stack; traversing a preset comparison table of reference phrases and natural languages, wherein if the comparison table has a reference phrase same as the natural phrase to be converted, then the natural phrase to be converted will be converted into a syntax phrase corresponding to the reference phrase in the comparison table; resolving and converting a next child node, when the natural language stack is empty, and ending the conversion when both the child node and the natural language stack are empty; creating a syntax phrase stack, which is used to store the converted syntax phrase; creating a syntax statement stack, whenever the natural language stack is empty and the child node has no child nodes on the next layer; popping-up the converted syntax phrase stored in the syntax phrase stack, and joining the syntax phrases into a statement which is pushed into the syntax statement stack; ending the popping-up when all the child nodes of the code tree are converted and the natural language stack is empty; and forming a code file from the statements formed by joining all the syntax phrases corresponding to all the child nodes of the code tree, wherein the creating of the syntax statement stack includes: reading the child node; pushing-in a nested starting syntax symbol before the conversion starts if the child node is a first child node; and pushing-in a nested ending syntax symbol after the conversion ends if the child node is the last one. 6. The method according to claim 4 , wherein the method further comprises: popping-up sequentially the statements from the syntax statement stack; adding at a tail of each statement natural semantics corresponding to the statement and a corresponding noting symbol; coding the code tree and adding the coding result to the tail of the noting symbol, displaying the entire code file if the syntax statement stack is empty, wherein the popping-up sequentially the statements comprises: determining a number of indent spaces of the code and sequentially popping-up the statements according to a number of layers of the nested starting syntax symbol and the nested ending syntax symbol.