-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ Operator parser ] Fixed a long-standing operator fixity bug.
With this fix in place operator parsing takes perhaps 25% more time for the standard library (the difference is roughly two seconds with my current setup).
- Loading branch information
Showing
14 changed files
with
169 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Issue147a.agda:10,9-12 | ||
Don't know how to parse f x. Could mean any one of: | ||
f_ x | ||
f x | ||
f_ x | ||
when scope checking f x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Issue147b.agda:10,1-10 | ||
Don't know how to parse bad (f x). Could mean any one of: | ||
bad (f_ x) | ||
bad (f x) | ||
bad (f_ x) | ||
when scope checking the left-hand side bad (f x) in the definition | ||
of bad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
data ℕ : Set where | ||
zero : ℕ | ||
suc : ℕ → ℕ | ||
|
||
{-# BUILTIN NATURAL ℕ #-} | ||
|
||
infixl 6 _+_ | ||
infix 6 _∸_ | ||
|
||
_+_ : ℕ → ℕ → ℕ | ||
zero + n = n | ||
suc m + n = suc (m + n) | ||
|
||
_∸_ : ℕ → ℕ → ℕ | ||
m ∸ zero = m | ||
zero ∸ suc n = zero | ||
suc m ∸ suc n = m ∸ n | ||
|
||
should-be-rejected : ℕ | ||
should-be-rejected = 1 + 0 ∸ 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Same-Precedence-Different-Associativity.agda:20,22-31 | ||
Could not parse the application 1 + 0 ∸ 1 | ||
when scope checking 1 + 0 ∸ 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.