BNF: end of statement character

This commit is contained in:
Victor Fernandes 2017-02-22 19:18:48 -05:00
parent 7a37173263
commit 6b6d084096
1 changed files with 2 additions and 3 deletions

View File

@ -157,7 +157,7 @@ This does not follow standard BNF/EBNF syntax, I will rewrite it once I get all
### 3.3 Assignment Statement
```
<assignment statement> ->
<assignment expression>
<assignment expression> ;
<assignment expression> ->
<arithmetic variable identifier> = <arithmetic expression>
@ -226,8 +226,7 @@ This does not follow standard BNF/EBNF syntax, I will rewrite it once I get all
```
#### 3.3.3 Conditional Expression
```
// BNF from C specification
// (adapted to PLATYPUS specification because it does not implement all of C's grammar)
// BNF from C specification adapted to PLATYPUS
// source: https://cs.wmich.edu/~gupta/teaching/cs4850/sumII06/The%20syntax%20of%20C%20in%20Backus-Naur%20form.htm
<conditional expression> ->
<logical OR expression>