JFLAP The shortest Power Point ever JFLAP What

  • Slides: 20
Download presentation
JFLAP The shortest Power. Point ever.

JFLAP The shortest Power. Point ever.

JFLAP – What is it? n Java applet to help make diagrams for: n

JFLAP – What is it? n Java applet to help make diagrams for: n n n DFA NFA regular grammar regular expression Also does conversion from DFA NFA

JFLAP – Where can I get it? n n http: //www. jflap. org/ -

JFLAP – Where can I get it? n n http: //www. jflap. org/ - Main website http: //java. sun. com/ - Java website n The Java Runtime Environment is required

Running JFLAP n n n Install the JRE Navigate to http: //www. jflap. org/getjflap.

Running JFLAP n n n Install the JRE Navigate to http: //www. jflap. org/getjflap. html An applet window will appear

Simple DFA n Select “Finite Automaton”

Simple DFA n Select “Finite Automaton”

Adding Nodes n Click this here button

Adding Nodes n Click this here button

Adding Nodes n Now click on the workspace to add it

Adding Nodes n Now click on the workspace to add it

Setting the initial state n Click the “attribute editor” button

Setting the initial state n Click the “attribute editor” button

Setting the initial state n Right click on the node and select initial

Setting the initial state n Right click on the node and select initial

Setting accept states n Right click on any node and select Final

Setting accept states n Right click on any node and select Final

Making transitions for nodes n Click the “transition creator”

Making transitions for nodes n Click the “transition creator”

Making transitions for nodes n Now simply click and drag between any two nodes!

Making transitions for nodes n Now simply click and drag between any two nodes!

Making transitions for nodes n n n After dragging, just specify what transition is

Making transitions for nodes n n n After dragging, just specify what transition is being made. Single-clicking on any node will add a reflexive transition Separate multiple input transitions by commas (ex: 0, 1)

A simple DFA

A simple DFA

Deleting nodes, transitions n Click the skull & crossbones

Deleting nodes, transitions n Click the skull & crossbones

Testing input n Input -> Fast Run

Testing input n Input -> Fast Run

Adding JFLAP to homework n n n Finish your DFA/NFA in JFLAP Hold ALT+

Adding JFLAP to homework n n n Finish your DFA/NFA in JFLAP Hold ALT+ PRNT SCRN Open MSPaint (run->pbrush) Paste the screenshot from the clipboard Use the rectangular marquee to select just the DFA/NFA you made Paste the DFA/NFA into your document

Adding JFLAP to homework

Adding JFLAP to homework

Adding JFLAP to homework

Adding JFLAP to homework

Other Features n Save - Save your DFA/NFA n n Convert n n File

Other Features n Save - Save your DFA/NFA n n Convert n n File -> Save No idea how to do this Input Options n State-by-state run