Check out RSS, or use RSS reader to subscribe this item
Confirmation
Authentication email has already been sent, please check your email box: and activate it as soon as possible.
You can login to My Profile and manage your email alerts.
Sponsored by the Center for Science and Technology Development of the Ministry of Education
Supervised by Ministry of Education of the People's Republic of China
This paper presents a method to implement domain specific language compiler based on ANTLR tool. The domain specific language studied in this paper is a chip development language but higher than instruction language. The language is concise and all variables in it refer to registers, The purpose of this paper is to realize the compiler of it and obtain its corresponding assembly code. The implementation of the compiler is based on ANTLR tool, which eliminates the cumbersome process of handwritten lexical analysis and syntax analysis. The listener generated by it is combined with a handwritten Conversion tool to compile the domain specific language. Finally, the results are given to verify the correctness of the compiler.