From 0697cc07dcdee8ec6c4440c565fb629502ad7f1f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 18 Apr 2021 00:06:34 +0200 Subject: Simplify whitespace in grammar representation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'README') diff --git a/README b/README index b6594b4..3042070 100644 --- a/README +++ b/README @@ -75,14 +75,14 @@ EXTENDED DESCRIPTION _low = character | integer; _high = character | integer; - concatenation = _, _operand, _, {",", _, _operand, _}; - alternation = _, concatenation, _, {"|", _, concatenation, _}; - optional = _, "[", _, _expression, _, "]", _; - repeated = _, "{", _, _expression, _, "}", _; - group = _, "(", _, _expression, _, ")", _; - char-range = _, "<", _, _low, _, ",", _, _high, "_", ">", _; - exception = _, "-", _; - embedded-rule = _, identifier, _; + concatenation = _operand, {_, ",", _, _operand}; + alternation = concatenation, {_, "|", _, concatenation}; + optional = "[", _, _expression, _, "]"; + repeated = "{", _, _expression, _, "}"; + group = "(", _, _expression, _, ")"; + char-range = "<", _, _low, _, ",", _, _high, "_", ">"; + exception = "-"; + embedded-rule = identifier; _literal = char-range | exception | string; _group = optional | repeated | group | embedded-rule; @@ -93,10 +93,10 @@ EXTENDED DESCRIPTION (* RULES *) - rule = _, identifier, _, "=", _, _expression, ";"; + rule = identifier, _, "=", _, _expression, _, ";"; (* This is the root rule of the grammar. *) - grammar = {rules, _}, _; + grammar = _, {rules, _}; The file must be encoded in UTF-8, with LF as the line break (CR and FF are illegal just becuase). -- cgit v1.2.3-70-g09d2