From 7a371732638bb5fb796907e884ce301005110f14 Mon Sep 17 00:00:00 2001 From: Victor Fernandes Date: Wed, 22 Feb 2017 19:10:15 -0500 Subject: [PATCH] h --- PLATYPUS Grammar Specification.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/PLATYPUS Grammar Specification.md b/PLATYPUS Grammar Specification.md index 5981456..506a462 100644 --- a/PLATYPUS Grammar Specification.md +++ b/PLATYPUS Grammar Specification.md @@ -2,7 +2,9 @@ ## 2. Lexical Specification (INCOMPLETE) -## NOTE: **This is incredibly incomplete and broken, I am simply writing this down and will fix it as I read along the informal language specification provided to me** +## NOTE: +**This is incomplete, I am simply writing this down and will fix it as I read along the informal language specification provided to me +This does not follow standard BNF/EBNF syntax, I will rewrite it once I get all the definitions correct and complete.** ### 2.1 Input Elements and Tokens ``` @@ -134,7 +136,7 @@ -> = ``` -## 3. The PLATYPUS Syntatic Specification +## 3. The PLATYPUS Syntactic Specification ### 3.1 PLATYPUS Program ``` -> @@ -158,8 +160,8 @@ -> - AVID = - | SVID = + = + | = ``` #### 3.2.2 Selection Statement (`if` statement) ``` @@ -225,14 +227,14 @@ #### 3.3.3 Conditional Expression ``` // BNF from C specification -// (translated to PLATYPUS because it does not implement all of C's grammar) +// (adapted to PLATYPUS specification 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 -> -> - | .OR. + | .OR. -> @@ -251,6 +253,6 @@ | -> - - | + + | ``` \ No newline at end of file