Skip to content

ghost1412/DFA-NFA-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DFA-NFA-simulator

This is a lex program to simulate DFA/ NFA

Terms and files Used

specification.txt: 1st files contains states for your nfa/dfa like 0 1 2 3 4 if 4 states

is_nfa_dfa: To simulate nfa(0) or dfa(1)

no_of_state: No. of states

no_of_alphabts: No. of alphabets

input.txt: input strings for program

How to use.

Clone the repository using git clone https://github.com/ghost1412/DFA-NFA-simulator.git.

Then edit specification file as you want and transition table you want for your dfa/nfa.

open terminal in that folder and write ./mylex is_nfa_dfa no_of_states no_final_states no_of_alphabets.

it will print "MATCHED" if input string matched else error.

About

This is a lex program to simulate NFA/ DFA

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy