Skip to content

TanmayPatil105/fsm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fsm - Finite State Machine

Takes regex as input and then creates an automate to handle user input.

Example

$ ./fsm "(a|b)*|((ab)d|(c+))"
S -> G
K -> AK
J -> I | K
I -> HB
H -> DC
G -> F | J
F -> EF | ε
E -> D | C
D -> a
C -> b
B -> d
A -> c

TODO:

  • Convert to Chomsky Normal Form
  • Check user string with regex

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published