Intelligent Information Management

Volume 4, Issue 4 (July 2012)

ISSN Print: 2160-5912   ISSN Online: 2160-5920

Google-based Impact Factor: 1.6  Citations  

Syntax-Tree Regular Expression Based DFA FormalConstruction

HTML  Download Download as PDF (Size: 224KB)  PP. 138-146  
DOI: 10.4236/iim.2012.44021    11,965 Downloads   17,656 Views  Citations

ABSTRACT

Compiler is a program whose functionality is to translate a computer program written in source language into an equivalent machine code. Compiler construction is an advanced research area because of its size and complexity. The source codes are in higher level languages which are usually complex and, consequently, increase the level of abstraction. Due to such reasons, design and construction of error free compiler is a challenge of the twenty first century. Verification of a source program does not guarantee about correctness of code generated because the bugs in compiler may lead to an incorrect target program. Therefore, verification of compiler is more important than verifying the source programs. Lexical analyzer is a main phase of compiler used for scanning input and grouping into sequence of tokens. In this paper, formal construction of deterministic finite automata (DFA) based on regular expression is presented as a part of lexical analyzer. At first, syntax tree is described based on the augmented regular expression. Then formal description of important operators, checking nullability and computing first and last positions of internal nodes of the tree is described. In next, the transition diagram is described from the follow positions and converted into deterministic finite automata by defining a relationship among syntax tree, transition diagram and DFA. Formal specification of the procedure is described using Z notation and model analysis is provided using Z/Eves toolset.

Share and Cite:

N. Zafar and F. Alsaade, "Syntax-Tree Regular Expression Based DFA FormalConstruction," Intelligent Information Management, Vol. 4 No. 4, 2012, pp. 138-146. doi: 10.4236/iim.2012.44021.

Cited by

[1] Simple algorithm to construct deterministic finite automata from non-deterministic finite automata using initial state transitions successor
AIP Conference Proceedings, 2022
[2] Turing Machine Engenders the Grammar for Formal Languages and Machine Design
2021
[3] Simplified Deterministic Finite Automata Construction Algorithm from Language Specification
2018
[4] An Effect of Particle Swarm Optimization on SDLC
2016
[5] An UML+ Z Framework For Validating And Verifying the Static Aspect of Safety Critical System
Procedia Computer Science, 2016
[6] Comparative Study and Performance Evaluation of Formal Specification Language based on Z, B and VDM Tools
International Journal of Scientific & Engineering Research, 2015
[7] Possible Improvements in UML Behavior Diagrams
Computational Science and Computational Intelligence (CSCI), 2014 International Conference on. Vol. 2. IEEE, 2014
[8] Model Analysis of Equivalence Classes in UML Events Relations
Journal of Software Engineering and Applications, 2013
[9] The Equivalent Conversion between Regular Grammar and Finite Automata
Journal of Software Engineering and Applications, 2013

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.