-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput_parser_grammar.dot
27 lines (20 loc) · 1.05 KB
/
input_parser_grammar.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
digraph {
rankdir = "LR";
ReadElement -> ReadNegativeCoefficient [label = "-"];
ReadElement -> ReadPositiveCoefficient [label = "0..9"];
ReadElement -> ReadVariableName [label = "a..z"];
ReadNegativeCoefficient -> ReadPositiveCoefficient [label = "0..9"];
ReadNegativeCoefficient -> ReadVariableName [label = "a..z"];
ReadPositiveCoefficient -> ReadPositiveCoefficient [label = "0..9"];
ReadPositiveCoefficient -> ReadVariableName [label = "a..z"];
ReadPositiveCoefficient -> ReadElement [label = "+"];
ReadPositiveCoefficient -> ReadElement [label = "-"];
ReadVariableName -> ReadVariableName [label = "a..z, 0..9"];
ReadVariableName -> ReadNegativeCoefficient [label = "-"];
ReadVariableName -> ReadPositiveCoefficient [label = "+"];
ReadVariableName -> ReadFreeMember [label = "="];
ReadFreeMember -> ReadNegativeFreeMember [label = "-"];
ReadFreeMember -> ReadPositiveFreeMember [label = "0..9"];
ReadNegativeFreeMember -> ReadPositiveFreeMember [label = "0..9"];
ReadPositiveFreeMember -> ReadPositiveFreeMember [label = "0..9"];
}