Skip to content

Commit

Permalink
Fix various discrepancies in grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Nov 6, 2014
1 parent 1f81d69 commit 95112a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions text/0000-precedence-of-plus.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ More fully, the type grammar is as follows (EBNF notation):
| ...
| '(' SUM ')'
SUM = TYPE { '+' TYPE }
PATH = IDS '<' SUM { ',' SUM } '>' '->' TYPE
| IDS '(' SUM { ',' SUM } '>' '->' TYPE
IDS = ID { :: ID }
PATH = IDS '<' SUM { ',' SUM } '>'
| IDS '(' SUM { ',' SUM } ')' '->' TYPE
IDS = ['::'] ID { '::' ID }

Where clauses would use the following grammar:

Expand Down

0 comments on commit 95112a4

Please sign in to comment.