Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.31 KB

File metadata and controls

25 lines (17 loc) · 1.31 KB

Usage

Welcome to flap.js

This is a minimal JFLAP clone in javscript so people can draw and interact with finite automata in their browsers. The notations used throughout the project are chosen to be compatible with CSE 105 at UC San Diego.

The Basics

TL;DR: double click to create vertices and right click + drag to make edges.

Additionally, dragging vertices and edges is supported and if you want to edit anything, simply right click on a vertex or the text on an edge. You will be prompted with a floating menu. After editing, press enter to confirm the change.

A shortcut to making a vertex final (accepting) is to double click on it.

basics.gif

Running Input

Enter the input string and press run. You can also step through the computation one character at a time. running_input.png

Download PNG

After you finish drawing your automaton, you can download a PNG of the drawing by clicking "Save as png" on the toolbar. download.gif

Permalink

This feature enables sharing machine drawings. Permalink stands for permanent link, meaning once you have created a link to share with your others, that link can uniquely decode back to a machine. permalink.gif