Skip to Main Content
This article describes a parallel process method to autogenerate LL(1) analytical table on multiprocessor computers, and it also discusses the designing thoughts and executing tactics in this parallel algorithm, just in order to improve the efficiency of compiler. Compiler is an important system software, and syntax analysis is the first step of compiler. In general, there are two kinds of methods on syntax analysis such as top-down approach and bottom-up approach. In this paper the author analyzes and studies the implementation method on top-down syntax analysis algorithm, and discovers one of the performance bottleneck on LL(1) syntax analysis is the number of non-terminals and terminals. So the author puts forward the thoughts of using parallel threads to solve the issues on plenty of nonterminals. That is , with the help of mechanism of intercommunication among the threads, LL(1) analytical table is autogenerated on multithread mode.