From b1a4b409c6a1f8b5ae9376e26461f8b5fabc4a1d Mon Sep 17 00:00:00 2001 From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz> Date: Tue, 9 Feb 2016 11:17:28 +0100 Subject: [PATCH] another grammar example --- examples2/grammar/contextFree2.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples2/grammar/contextFree2.txt diff --git a/examples2/grammar/contextFree2.txt b/examples2/grammar/contextFree2.txt new file mode 100644 index 0000000000..40a7787b86 --- /dev/null +++ b/examples2/grammar/contextFree2.txt @@ -0,0 +1,10 @@ +CFG ( +{'S', 'B', 'C', 'D', 'E'}, +{'a', 'b'}, +{'S' -> 'D' 'S' | 'a' | 'C' 'D', +'C' -> 'D' 'a' 'B' | 'b', +'B' -> 'S' 'D' |, +'D' -> 'B' 'E', +'E' -> 'a' | 'C' 'D' +}, +'D') -- GitLab