Skip to content

A project that implements Thompson's construction algorithm to convert regular expressions into Non-deterministic Finite Automata (NFA).

License

Notifications You must be signed in to change notification settings

HyphenSaad/regex-automata-visualizer

Repository files navigation

RegEx Automata Visualizer

A project that implements Thompson's construction algorithm to convert regular expressions into Non-deterministic Finite Automata (NFA).

Project Information

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

Features

  • 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

Setup and Run

Prerequisites

Steps

  1. Clone the repository:

    git clone https://github.com/hyphensaad/regex-automata-visualizer.git
  2. Navigate to the project directory:

    cd regex-automata-visualizer
  3. Install dependencies:

     npm install
  4. Start the development server:

    npm run dev
  5. Open the project in your browser:

    Navigate to http://localhost:8080 in your browser to view the project.

Live Version

The live version of the project is hosted on GitHub Pages and can be accessed at the following link:

RegEx Automata Visualizer

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A project that implements Thompson's construction algorithm to convert regular expressions into Non-deterministic Finite Automata (NFA).

Resources

License

Stars

Watchers

Forks