A project that implements Thompson's construction algorithm to convert regular expressions into Non-deterministic Finite Automata (NFA).
| Project Name | RegEx Automata |
|---|---|
| Author | Saad Mansoor |
| Roll Number | 24015919-003 |
| Department | Department of Computer Science |
| University | University of Gujrat, Hafiz Hayat Campus |
| Course | Advanced Theory of Computation |
| Type | Term Project |
- Converts regular expressions to NFAs using Thompson's construction
- Supports basic regex operations:
- Concatenation (ab)
- Alternation (a+b)
- Kleene star (a*)
- Grouping with parentheses ((a+b)*)
- Error handling for invalid regex syntax
- Node.js (v20 or later)
-
Clone the repository:
git clone https://github.com/hyphensaad/regex-automata-visualizer.git
-
Navigate to the project directory:
cd regex-automata-visualizer -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open the project in your browser:
Navigate to
http://localhost:8080in your browser to view the project.
The live version of the project is hosted on GitHub Pages and can be accessed at the following link:
This project is licensed under the MIT License - see the LICENSE file for details.