File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 1
- # regular-expression-to-nfa
1
+ # MY COMPILER DESIGN LAB EXPERIMENTS
2
2
3
- This program "ex2-v2.py" converts regular expression into e-NFA and gives e-NFA table as output.
4
3
5
4
### Requirements
6
5
1 . Python 3.6+
@@ -10,15 +9,5 @@ Install Python 3.6+
10
9
Clone this repository
11
10
In command line type:
12
11
```
13
- python ex2-v2 .py
12
+ python ex[exercise-number] .py
14
13
```
15
-
16
- You can also give your custom regular expression in the first line of the program
17
-
18
- * Few things to take note of:*
19
- 1 . * a and b are the only terminals accepted by this script*
20
- 2 . * e denotes epsilon*
21
- 3 . * " . " is used for "and" operation Eg. ab = a.b*
22
- 4 . * " + " is used for "or" operation Eg. a|b = a+b*
23
- 5 . * " \* " is the Kleene's Closure operator. You can give star operator after any closing brackets and terminals*
24
-
You can’t perform that action at this time.
0 commit comments