Skip to content

Repository files navigation

AFD & Regex Compiler

This repository contains two main components:

  1. A Deterministic Finite Automaton (DFA) implemented in C++.
  2. A compiler for regular expressions implemented in C#.

Deterministic Finite Automaton (DFA)

The Deterministic Finite Automaton (DFA) is a C++ implementation that checks whether a given string is accepted by a specific deterministic automaton.

Features:

  • Implemented in C++.
  • Uses efficient data structures to represent states and transitions.
  • Allows reading and defining an automaton from a configuration file.
  • Supports string validation based on the defined automaton.

Regex Compiler (C#)

The regular expression compiler is a C# application that converts a regex into an equivalent finite automaton.

Features:

  • Implemented in C# .NET.
  • Supports standard regular expressions.
  • Transforms a regex into an equivalent finite automaton.
  • Generates C++ code for the resulting DFA.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages