From 6aad9b40de4002ab061988b21ff1b806ffa1cb9e Mon Sep 17 00:00:00 2001 From: Victor Fernandes Date: Tue, 21 Feb 2017 13:48:10 -0500 Subject: [PATCH] Finish grammar --- PLATYPUS Grammar Specification.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/PLATYPUS Grammar Specification.md b/PLATYPUS Grammar Specification.md index 82105ea..7effa17 100644 --- a/PLATYPUS Grammar Specification.md +++ b/PLATYPUS Grammar Specification.md @@ -161,13 +161,13 @@ #### 3.2.2 Selection Statement (`if` statement) ``` -> - IF () THEN + IF () THEN ELSE {}; ``` #### 3.2.3 Iteration Statement (the loop statement) ``` -> - + USING ( , , ) REPEAT { }; ``` #### 3.2.4 Input Statement ``` @@ -180,7 +180,7 @@ #### 3.2.5 Output Statement ``` -> - + OUTPUT( | ); ``` ### 3.3 Expressions #### 3.3.1 Arithmetic Expressions @@ -222,23 +222,27 @@ #### 3.3.3 Conditional Expression ``` -> - + + | + | -> - + .OR. -> - + .AND. ``` #### 3.3.4 Relational Expression ``` -> == | <= + | >= | > | < | == | <= + | >= | > | < @@ -248,5 +252,6 @@ | -> - + + | ``` \ No newline at end of file