This repository contains two main components:
- A Deterministic Finite Automaton (DFA) implemented in C++.
- A compiler for regular expressions implemented in C#.
The Deterministic Finite Automaton (DFA) is a C++ implementation that checks whether a given string is accepted by a specific deterministic automaton.
- 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.
The regular expression compiler is a C# application that converts a regex into an equivalent finite automaton.
- Implemented in C# .NET.
- Supports standard regular expressions.
- Transforms a regex into an equivalent finite automaton.
- Generates C++ code for the resulting DFA.