Skip to content

Commit 95112a4

Browse files
committed
Fix various discrepancies in grammar
1 parent 1f81d69 commit 95112a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/0000-precedence-of-plus.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ More fully, the type grammar is as follows (EBNF notation):
6565
| ...
6666
| '(' SUM ')'
6767
SUM = TYPE { '+' TYPE }
68-
PATH = IDS '<' SUM { ',' SUM } '>' '->' TYPE
69-
| IDS '(' SUM { ',' SUM } '>' '->' TYPE
70-
IDS = ID { :: ID }
68+
PATH = IDS '<' SUM { ',' SUM } '>'
69+
| IDS '(' SUM { ',' SUM } ')' '->' TYPE
70+
IDS = ['::'] ID { '::' ID }
7171

7272
Where clauses would use the following grammar:
7373

0 commit comments

Comments
 (0)