An embodiment of the present application provides a coloring language translation method. In the coloring language translation method, the abstract syntax tree of the code file of the original coloring language is obtained, and the keywords of the nodes in the abstract syntax tree are analyzed to obtain the coloring language information contained in the code file of the original coloring language. Combined with the set information mapping rules, the coloring language information can be translated to obtain a code file of another coloring language. In this process, the node analysis is performed based on the abstract syntax tree, and the original grammatical structure of the code file of the original coloring language is preserved. At the same time, based on the analysis of node keywords, the corresponding translation between different types of information is realized, which is conducive to improving the readability of translation results; in addition, the information mapping rules can be updated according to actual needs, improving It improves the scalability of the language translation method, and supports the new coloring language syntax conveniently and quickly.