Giter Club home page Giter Club logo

automatizer's Introduction

Automatizer

Automatizer is an Eclipse plugin for manipulating finite-state automata and regular expressions. It can help beginners to understand relationships between FSA and regexps.

Installation

  1. Go to Help > Install New Software... in your Eclipse IDE
  2. Add http://chaoslawful.github.io/automatizer/update/ in update sites
  3. Check Automatizer group in available plugins list, click Next button and follow the installation instructions.
  4. Restart Eclipse

How to Use

Press Ctrl-Alt-Z to show automatizer view and select any text. The plugin will then parse the selection as regular expression and show corresponding FSA transition diagram in the view.

Regexp2FSA

If the selected text is in Graphviz DOT syntax, the plugin will try to parse it as description of a FSA and show the corresponding transition diagram. For successfully parsing, the DOT text must comply with the following restrictions:

  1. Initial state must be pointed to by a node named initial
  2. Final states must have the attribute shape=doublecircle
  3. The attribute label on the edges is the transition condition, which must be a single character, a character range (like a-z) or a character set (like [xyz])

For example:

digraph G {
	2 [shape=doublecircle];
	initial -> 1;
	1 -> 2 [label="a-z"];
	1 -> 2 [label="[234]"];
	1 -> 2 [label="@"];
	2 -> 1 [label="[01]"];
}

DOT2FSA

If you clicked Show Regexp in context menu of the view, the regular expression string converted from the current automaton would also be shown along with the transition diagram.

FSA2Regexp

Plugin Overview

This plugin provides the following features:

  • Show ε-free NFA or minimized DFA corresponding to a regular expression
  • Show streaming matching variants of the automata
  • Show regular expression corresponding to current automaton using state elimination method
  • Export automata transition diagram to image or Graphviz DOT file

Todo List

  • Integrate some kind of regexp minimization algorithm
  • Integrate some kind of NFA minimization algorithm
  • Add ability to show ε-NFA transition diagram
  • Improve transition diagram layout (has to wait for release of Zest 2.x)

Authors and Contributors

  • Wang, Xiaozhe (@chaoslawful)

See Also

automatizer's People

Contributors

chaoslawful avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.