Skip to content

Implementing a JFLAP finite automaton in Python 3 to recognize a valid email address

License

Notifications You must be signed in to change notification settings

Roturgo/Finite-Automata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Finite Automata

Implementing the following JFLAP finite automaton in Python 3 to recognize a valid email address:

an image showing my email validator finite automata design from JFLAP

Background

This Python 3 program was implemented as part of the graduate-level coursework for CSC 720 at Dakota State University.

Prerequisites

This program is written in Python 3, and has been tested to run on Linux (OpenSUSE Tumbleweed) with Python 3.11. It should work on any currently-supported Python 3.x interpreter. No additional libraries are required.

Running the program

On Linux, you can run this program via the following command on a terminal session:

python3 ./email_validator.py
  1. The program will prompt you to enter an email address on the command line (e.g., [email protected]).
  2. Once you enter an address, press "ENTER" or "RETURN".
  3. The program will then check whether or not the entered email address is valid.
  4. If the email address is determined to be valid, the program will print "Email address entered text is valid"
  5. If the email address is determined not to be valid, the program will print "Email address entered text is NOT valid"

That's it! Once the results are printed, the program exits.

Example output

an image showing output from running the email_validator.py script

About

Implementing a JFLAP finite automaton in Python 3 to recognize a valid email address

Topics

Resources

License

Stars

Watchers

Forks

Languages