Skip to content

A little CLI program to convert NFA's to DFA's

License

Notifications You must be signed in to change notification settings

kris701/NFAToDFA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFA To DFA

A simple program to convert NFA's to DFA's. Its a simple CLI interface that accepts a NFA file and outputs an equivalent DFA for it.

image

CLI Arguments

There are the following command line arguments:

  • --nfa: The path to the NFA file
  • --dfa: The path to where you want the output DFA to go

File Format

The input file format for this program is very simple, and consists of 3 parts:

  • Label declaration
  • State declaration
  • Transitions

The label declarations is simply a set of what labels are available in the process:

  • {a, b, c, ...}

The state declarations consists of max three parts and minimum one:

  • [(StateName):IsInit:IsFinal] The IsInit and IsFinal is optional.

Lastly, there is the transitions. These describe how to jump from state to state through a label:

  • (StateName) LabelName (StateName)

image

About

A little CLI program to convert NFA's to DFA's

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages