From d24301940a99a1321d088a01819dfe1a51634e2f Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Mon, 30 Jan 2017 16:16:54 +0100 Subject: Another exercise on context-free grammars. --- figs/ex3pt1.dot | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 figs/ex3pt1.dot (limited to 'figs') diff --git a/figs/ex3pt1.dot b/figs/ex3pt1.dot new file mode 100644 index 0000000..1628103 --- /dev/null +++ b/figs/ex3pt1.dot @@ -0,0 +1,22 @@ +graph ex3pt1 { + node [texmode="math",shape="none"]; + S0 [label="S"]; + S1 [label="S"]; + a0 [label="a"]; + S2 [label="S"]; + S3 [label="S"]; + a1 [label="a"]; + S4 [label="S"]; + b0 [label="b"]; + b1 [label="b"]; + b2 [label="b"]; + S0 -- S1; + S0 -- a0; + S0 -- S2; + S1 -- S3; + S1 -- a1; + S1 -- S4; + S2 -- b0; + S3 -- b1; + S4 -- b2; +} -- cgit v1.2.3