Commit 411d0bb
authored
Update dot_product.dana (var-def must not be inside the block of the function but in the local def) (#76)
⟨local-def⟩ ::= ⟨func-def⟩ | ⟨func-decl⟩ | ⟨var-def⟩
⟨var-def⟩ ::= “var” (⟨id⟩)+ “is” ⟨type⟩
According to the grammar of Dana, all var definitions must be in the local-def and not inside the block of the function.1 parent 4b9cc01 commit 411d0bb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments