Design of Chinese Programming Language Compiler Based on LLVM Framework
Fengwei Xiao · 2024
As a basic technology in the Internet industry and even the entire computer industry, programming has been increasingly valued by the entire society. Through traditional lexical analysis, top-down grammatical analysis, and docking with LLVM backend, this paper designs and completes a Chinese programming language compiler that uses expressions that can be evaluated as the basic structure and supports functions, recursion, and loops. It is a completely open-source, Chinese, Turing-complete, process-oriented Chinese programming language with simple syntax. It supports functions including: basic expressions, binary expressions, process functions, control flow, loop flow, function recursion, JIT support. The realization of this compiler can improve the popularization of Chinese programming language and play a certain role in promoting the development of Chinese compiler.