Home > Papers

 
 
Implementation of DSL compiler based on ANTLR
Jiang Ya-Yun, Man Yi *
School of Electronic Engineering, Beijing University of Posts and Telecommunications, Beijing 100876
*Correspondence author
#Submitted by
Subject:
Funding: none
Opened online:14 December 2021
Accepted by: none
Citation: Jiang Ya-Yun, Man Yi.Implementation of DSL compiler based on ANTLR[OL]. [14 December 2021] http://en.paper.edu.cn/en_releasepaper/content/4755893
 
 
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.
Keywords:Computer application technology;DSL; Syntax abstraction;Compiler
 
 
 

For this paper

  • PDF (0B)
  • ● Revision 0   
  • ● Print this paper
  • ● Recommend this paper to a friend
  • ● Add to my favorite list

    Saved Papers

    Please enter a name for this paper to be shown in your personalized Saved Papers list

Tags

Add yours

Related Papers

Statistics

PDF Downloaded 29
Bookmarked 0
Recommend 0
Comments Array
Submit your papers