From 321cb4a95998ba4d95eb1a9aa839684f68d0d72c Mon Sep 17 00:00:00 2001 From: Victor Fernandes Date: Tue, 21 Feb 2017 15:08:32 -0500 Subject: [PATCH] Clean up and remove 'one of's --- PLATYPUS Grammar Specification.md | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/PLATYPUS Grammar Specification.md b/PLATYPUS Grammar Specification.md index 256754e..5981456 100644 --- a/PLATYPUS Grammar Specification.md +++ b/PLATYPUS Grammar Specification.md @@ -82,7 +82,7 @@ 0 | -> one of - [1-9] + 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 -> 0 @@ -109,8 +109,8 @@ ``` ### 2.9 Separators ``` - -> one of - ( ) { } , ; " . + -> + ( | ) | { | } | , | ; | " |. ``` ### 2.10 Operators ``` @@ -119,14 +119,14 @@ | | | - -> one of - + - * / + -> + + | - | * | / - -> one of + -> << - -> one of - > < == <> + -> + > | < | == | <> -> .AND. | .OR. @@ -224,12 +224,6 @@ ``` #### 3.3.3 Conditional Expression ``` - -> - - | - | - - // BNF from C specification // (translated to PLATYPUS because it does not implement all of C's grammar) // source: https://cs.wmich.edu/~gupta/teaching/cs4850/sumII06/The%20syntax%20of%20C%20in%20Backus-Naur%20form.htm @@ -244,13 +238,6 @@ | .AND. // END BNF from C specification - - - -> - .OR. - - -> - .AND. ``` #### 3.3.4 Relational Expression ```