Skip to content

Commit

Permalink
#85-Modify-Correct Typee syntax
Browse files Browse the repository at this point in the history
Corrected rule <statements block>. Accepts now single statement without brackets - should alwa
  • Loading branch information
schmouk committed Feb 8, 2019
1 parent 937db8b commit 85ffca3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
12 changes: 11 additions & 1 deletion Language-specifications/typee_specs_LL1-v9-1-EBNF.grm
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,17 @@ SOFTWARE.
<simple statement end> ::= ';'

<statements block> ::= '{' [<statements list>] '}' |
[<nop statement>] <simple statement end>
(<empty statement>)* |
<compound statement> | <simple statement>


<statements block> ::= '{' <statements list> '}'
| <empty statement> <statements block> ###
| <compound statement> ###
| <simple statement> ###
## | <nop statement> <simple statement end> ###
## | <simple statement end> ###


<assert statement> ::= 'assert' <expression> ( ',' <expression>)*

Expand Down
8 changes: 5 additions & 3 deletions Language-specifications/typee_specs_LL1-v9-1.grm
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,11 @@ SOFTWARE.
<simple statement end> ::= ';'

<statements block> ::= '{' <statements list> '}'
| <nop statement> <simple statement end>
| <simple statement end>

| <empty statement> <statements block> ###
| <compound statement> ###
| <simple statement> ###
## | <nop statement> <simple statement end> ###
## | <simple statement end> ###

<assert statement> ::= 'assert' <expression> <assert statement'>
<assert statement'> ::= ',' <expression>
Expand Down

0 comments on commit 85ffca3

Please sign in to comment.