项目作者: miedzinski

项目描述 :
Regex parser & NFA visualizer
高级语言: Rust
项目地址: git://github.com/miedzinski/regex.git
创建时间: 2019-06-22T14:42:50Z
项目社区:https://github.com/miedzinski/regex

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

下载


regex

Regular expressions parser written with nom.

Graphviz compiler

example NFA constructed from regex

There is additional tool for constructing equivalent NFA in DOT language based on algorithm shown in Dragon Book.
The output can be piped to Graphviz, which in turn can output other formats, such as PNG.

Run with

  1. cargo run --bin dot <<< '[0-9.[:lower:]]?|fo+(bar)?'

License

GNU GPLv3.