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.
If you haven’t received the email, please:
|
|
There are 3 papers published in subject: > since this site started. |
Results per page: |
Select Subject |
Select/Unselect all | For Selected Papers |
Saved Papers
Please enter a name for this paper to be shown in your personalized Saved Papers list
|
1. An Abstract Syntax Tree Construction Analysis Model Based on JavaCC | |||
WANG Guolong,JIN Dahai | |||
Computer Science and Technology 09 January 2022 | |||
Show/Hide Abstract | Cite this paper︱Full-text: PDF (0 B) | |||
Abstract:Abstract syntax tree (AST) was an important intermediate expression form of code. Aiming at the deficiencies of existing lexical and syntax analysis tool JavaCC (Java Compiler Compiler) that it did not support the new C++ standard and did not have a good error handling mechanism, an abstract syntax tree construction analysis model based on JavaCC was proposed in this paper. First, C++ grammar rules through the EBNF (Extended Backus-Naur Form) are defined, and a rule expansion method is proposed to deal with future syntax updates. Secondly, a syntax tree is constructed based on the JavaCC by generating lexical and grammar parser, and the key information is extracted through traversing the syntax tree. Thirdly, some strategies are proposed such as embedding Java code, skipping mismatched grammatical fragments, and constructing the feature hash of syntax tree nodes for error handling. Finally, a prototype system based on this model is designed and developed in this paper, and the effectiveness of the model in both time and space dimensions is verified through open source engineering experiments adopting C++ new standard. | |||
TO cite this article:WANG Guolong,JIN Dahai. An Abstract Syntax Tree Construction Analysis Model Based on JavaCC[OL].[ 9 January 2022] http://en.paper.edu.cn/en_releasepaper/content/4756084 |
2. Implementation of DSL compiler based on ANTLR | |||
Jiang Ya-Yun, Man Yi | |||
Computer Science and Technology 06 December 2021 | |||
Show/Hide Abstract | Cite this paper︱Full-text: PDF (0 B) | |||
Abstract: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. | |||
TO cite this article:Jiang Ya-Yun, Man Yi. Implementation of DSL compiler based on ANTLR[OL].[ 6 December 2021] http://en.paper.edu.cn/en_releasepaper/content/4755893 |
3. Limitation of object-oriented language’s polymorphism | |||
Elias Yu,Zeng XiJun | |||
Computer Science and Technology 28 July 2009 | |||
Show/Hide Abstract | Cite this paper︱Full-text: PDF (0 B) | |||
Abstract:The polymorphism of object-oriented language is the key technology, the use of the method and internal principle is one of the most difficult technologies. In this paper, C + + as an example, analyzed the theory of Polymorphism and pointed out the limitation when rewrite few virtual function in derived class, and put forward a kind of solving method with the string matches to replace the seek address. | |||
TO cite this article:Elias Yu,Zeng XiJun. Limitation of object-oriented language’s polymorphism[OL].[28 July 2009] http://en.paper.edu.cn/en_releasepaper/content/34133 |
Select/Unselect all | For Selected Papers |
Saved Papers
Please enter a name for this paper to be shown in your personalized Saved Papers list
|
Results per page: |
About Sciencepaper Online | Privacy Policy | Terms & Conditions | Contact Us
© 2003-2012 Sciencepaper Online. unless otherwise stated