Development of a Non-Deterministic Finite Automaton with Epsilon Moves (E − NF A) Generator Using Thompson’s Construction Algorithm
DOI:
https://doi.org/10.61569/tvex6p34Keywords:
Regular Expression, Finite State Machine, Parse TreeAbstract
The study designed and developed a finite state machine generator which converts a regular expression to its equivalent non-deterministic finite automaton with -moves ( − NF A). It implements Thompson’s construction algorithm, an algorithm that works recursively by splitting an expression into its constituent subexpressions, from which the − NF A will be constructed by a set of rules. The system accepts a valid regular expression and rejects an invalid one. The regular expression is then parsed and evaluated by a parse tree to be converted to its equivalent states. The states is then connected and generated as a whole to show the finite state machine. The finite state machine generator was implemented using the Java programming language with the JavaFX package to produce better quality and easy to use graphical interface. An online acceptability survey obtained a 3.96 (exceeded beyond expectation) acceptability rating.
Downloads
Published
Issue
Section
License
This work is licensed under a Creative Commons Attribution 4.0 International License.
This is an open access article distributed in accordance with the Creative Commons Attribution 4.0 Unported (CC BY 4.0) license, which permits others to copy, redistribute, remix, transform and build upon this work for any purpose, provided the original work is properly cited, a link to the license is given, and indication of whether changes were made. See: Creative Commons Attributions 4.0 International License.