Open Access Open Access  Restricted Access Subscription Access
Open Access Open Access Open Access  Restricted Access Restricted Access Subscription Access

Syntax Tree Construction for the Verification of Lexical Analyzer


Affiliations
1 Computer Technology from RCET, Bhilai, India
2 Barkatullah University, Bhopal, India
     

   Subscribe/Renew Journal


A Compiler is a language translator which translates high level language to low level language, this is the task of a compiler. Removing the bugs of source program does not assure that the generated target code is completely error free because there may be bugs in compiler also. So it is more important to verify the Compiler itself. Lexical analyzer is a first phase and main part of compiler used for scanning input stream of characters and grouping into tokens. In this paper formal construction of syntax tree is described from the regular expression to verify the lexical analyzer and this is the aim of paper. If the syntax tree will be constructed successfully for the given regular expression then the lexical analyzer will be verified. Formal specifications can be rigorously validated and verified leading to the early detection of specification errors. The specification is described using Model oriented formal specification languages Vienna Development Method (VDM) because only Vienna Development Method provide support for concurrency control and also using VDM Software requirement specification can be automatically converted into computer source code.

Keywords

Compiler Verification, Formal Specification, Lexical Analyzer, Regular Expression, VDM.
User
Subscription Login to verify subscription
Notifications
Font Size

Abstract Views: 168

PDF Views: 4




  • Syntax Tree Construction for the Verification of Lexical Analyzer

Abstract Views: 168  |  PDF Views: 4

Authors

Kamleshwari Verma
Computer Technology from RCET, Bhilai, India
Toran Verma
Barkatullah University, Bhopal, India

Abstract


A Compiler is a language translator which translates high level language to low level language, this is the task of a compiler. Removing the bugs of source program does not assure that the generated target code is completely error free because there may be bugs in compiler also. So it is more important to verify the Compiler itself. Lexical analyzer is a first phase and main part of compiler used for scanning input stream of characters and grouping into tokens. In this paper formal construction of syntax tree is described from the regular expression to verify the lexical analyzer and this is the aim of paper. If the syntax tree will be constructed successfully for the given regular expression then the lexical analyzer will be verified. Formal specifications can be rigorously validated and verified leading to the early detection of specification errors. The specification is described using Model oriented formal specification languages Vienna Development Method (VDM) because only Vienna Development Method provide support for concurrency control and also using VDM Software requirement specification can be automatically converted into computer source code.

Keywords


Compiler Verification, Formal Specification, Lexical Analyzer, Regular Expression, VDM.