From a0c6f09c8bcb926653ffbd2c702f6df4e02c7f4a Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 12 Jun 2018 19:42:56 +0200 Subject: [PATCH] added readme --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..afc7b2d --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +## Grammar Syntax + +### Example + + $FOO -> /foo + $FOO -> /foo$FOO + $FOO -> $BAR + $BAR -> /bar + $BAR -> $BAR + + +### Nonterminals + +A Nonterminal starts with a leading `$`. The nonterminal `FOO` would be written as: + + $FOO + + +### Terminals + +A Terminals starts with a leading `/`. The terminal `bar` would be written as: + + /bar + +Note that `/ab` differs from `/a/b`. The string `/ab` resolves to the terminal `ab`, +whereas `/a/b` resolves to the terminals `a` and `b` -- 2.20.1