项目作者: edgarogh

项目描述 :
DFA description DSL
高级语言: Rust
项目地址: git://github.com/edgarogh/automata-to-graphviz.git
创建时间: 2020-09-28T22:26:02Z
项目社区:https://github.com/edgarogh/automata-to-graphviz

开源协议:GNU General Public License v3.0

下载


DFA description DSL

Examples:

-> 1^b -a> (2)

  1. 2 -b> -> (1) -a> 2
  2. 2 -a> P
  3. (1) -b> P

-> 1^a,b

Basic syntax

Nodes can be used without explicit declaration.

  • 1, P: basic node
  • (1), (E): acceptor node
  • -> before a node: input “connector” (only one allowed per DFA)
  • -a>, -a,b>: connectors, resp. for labels {a}, and {a,b}
  • 1^a: looping connector (connector for symbol a, from 1 to 1) (shortcut)

  • Enter: new line = new expression with fresh context

Usage

Unix stdin/stdout.

i.e: cargo run < automata.txt

License

By Edgar Onghena dev@edgar.bzh

GPLv3