Skip to content

Commit 14149e6

Browse files
committed
doc
1 parent fcdcbc8 commit 14149e6

File tree

5 files changed

+33
-1
lines changed

5 files changed

+33
-1
lines changed

README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,34 @@
11
# ERE
2-
Educational Regular expression Engine
2+
**Educational Regular expression Engine--purpose for education of automata theory.**
3+
4+
all base on C++11 standard library and a tiny C++11 template library [ATMPL](https://github.com/yufengzjj/ATMPL) .
5+
6+
this regular expression engine only support core operations:alternate,concat and closure.
7+
8+
it uses recursive descent parsing to parse regular expression and then generate finite state automata.it can generate DOT(Graphviz) file of NFA/DFA/miniDFA of the regular expression automata.
9+
10+
examples:
11+
12+
> ERE.exe --help
13+
>
14+
> -h [ --help ] produce help message
15+
>
16+
> -e [ --expr ] arg set regular expression
17+
>
18+
> -s [ --string ] arg string to check by regular expression
19+
>
20+
> -a [ --alphabet ] arg set regular expression alphabet
21+
22+
ERE.exe -e "a(b|cd)*e" -s abbbcdcde
23+
24+
![](doc/1.png)
25+
26+
dot -T png -O NFA.dot DFA.dot min_DFA.dot
27+
28+
29+
30+
![](doc/NFA.dot.png)
31+
32+
![](doc/DFA.dot.png)
33+
34+
![](doc/min_DFA.dot.png)

doc/1.png

17.8 KB
Loading

doc/DFA.dot.png

31.6 KB
Loading

doc/NFA.dot.png

44.7 KB
Loading

doc/min_DFA.dot.png

16.4 KB
Loading

0 commit comments

Comments
 (0)