Commit Graph

3749 Commits

Author SHA1 Message Date
André Videla
1631326887 Update src/Idris/Error.idr 2024-02-24 12:36:44 +00:00
André Videla
b48a2d11f0 Update src/Idris/Doc/Keywords.idr 2024-02-24 12:36:44 +00:00
André Videla
2859fcee08 Update docs/source/reference/operators.rst 2024-02-24 12:36:44 +00:00
André Videla
8c69b3e749 Update src/Idris/Desugar.idr 2024-02-24 12:36:44 +00:00
André Videla
58bcfb73c1 Update tests/idris2/operators/operators001/Test.idr 2024-02-24 12:36:44 +00:00
André Videla
48618490d0 Update src/Idris/Doc/Keywords.idr 2024-02-24 12:36:44 +00:00
André Videla
93de3e0e07 Update docs/source/reference/operators.rst 2024-02-24 12:36:44 +00:00
André Videla
e7a4914f11 Update docs/source/reference/operators.rst 2024-02-24 12:36:44 +00:00
André Videla
e1f4fbba83 Update docs/source/reference/operators.rst 2024-02-24 12:36:44 +00:00
André Videla
23b2ddd179 Update docs/source/reference/operators.rst 2024-02-24 12:36:44 +00:00
André Videla
b22c7f8289 Update docs/source/reference/operators.rst 2024-02-24 12:36:44 +00:00
André Videla
ef0ca76b4c Update docs/source/reference/operators.rst 2024-02-24 12:36:44 +00:00
André Videla
c4c79c9115 Update docs/source/reference/operators.rst 2024-02-24 12:36:44 +00:00
André Videla
bcb225568a Update docs/source/reference/operators.rst 2024-02-24 12:36:44 +00:00
André Videla
c6fbd27c6c Update docs/source/reference/operators.rst 2024-02-24 12:36:44 +00:00
André Videla
e0f5ee9996 implement compatible operator suggestions 2024-02-24 12:36:44 +00:00
André Videla
31ea83039c first attempt at suggesting different operators 2024-02-24 12:36:44 +00:00
André Videla
ebb8b55d45 Udpate IDE test
This change is correct because `=` is indeed a function and should
be colored as such.
2024-02-24 12:36:44 +00:00
André Videla
4eb9c97806 Allow patterns in operator binders 2024-02-24 12:36:44 +00:00
André Videla
1d3668d9a6 Allow underscore as a valid name for binder operator 2024-02-24 12:36:44 +00:00
André Videla
91f66bc7b5 add location of fixity to change in error message 2024-02-24 12:36:44 +00:00
André Videla
210f9d9c15 fix error message for non-associative fixity 2024-02-24 12:36:44 +00:00
Mathew Polzin
e583e73a7c move CHANGELOG entry to CHANGELOG_NEXT 2024-02-24 12:36:42 +00:00
Andre Videla
b5895394d1 update comment documentation strings 2024-02-24 12:28:10 +00:00
André Videla
eb9d4d65a5 fix typo in doc 2024-02-24 12:28:10 +00:00
André Videla
4cb8dc507b update error message for infixr 2024-02-24 12:28:10 +00:00
André Videla
63c167637c wip more error messages 2024-02-24 12:28:10 +00:00
Andre Videla
c3651509e0 add operator documentation 2024-02-24 12:28:10 +00:00
Andre Videla
3d2c854257 update docs 2024-02-24 12:28:10 +00:00
Andre Videla
38fbad17f8 update test 2024-02-24 12:28:10 +00:00
Andre Videla
1633b7ec1c reverse parsing of pi 2024-02-24 12:28:10 +00:00
Andre Videla
992fc62d86 reinstate the good error messages 2024-02-24 12:28:10 +00:00
Andre Videla
a73522ec66 cleanup tests 2024-02-24 12:28:10 +00:00
André Videla
f079781c17 fix tests 2024-02-24 12:28:10 +00:00
André Videla
a7a25914b7 Allow binding operators on LHS
When a binding operator is found on the LHS, we don't check
if the first argument is a binder.
2024-02-24 12:28:10 +00:00
André Videla
d49f008cb5 fix repl documentation 2024-02-24 12:28:10 +00:00
Andre Videla
07c42c22a5 update error messages 2024-02-24 12:28:10 +00:00
Andre Videla
0f46e2c2fa Display dynamic errors for binding operators
Whenever the binding structure of an operator does not match
the fixity in scope, the error displays what was the expected
syntax and what was given. Additionally, it provides code
samples of possible fixes for the current error, dynamically
generated from the information at the error's site.
2024-02-24 12:28:10 +00:00
André Videla
fd40777e0d add error message tests 2024-02-24 12:28:10 +00:00
André Videla
653ed454ef add basics error messages for operator misuse 2024-02-24 12:28:10 +00:00
André Videla
4c7010871f cleanup hole 2024-02-24 12:28:10 +00:00
André Videla
891f841077 correctly rearrange binding operators according to shunting rules 2024-02-24 12:28:10 +00:00
André Videla
02a6751796 add shunting test 2024-02-24 12:28:10 +00:00
André Videla
1adb780e3f add tests to chaining and combing operators 2024-02-24 12:28:10 +00:00
André Videla
6ce4ec2ebf add both typebind and autobind 2024-02-24 12:28:10 +00:00
André Videla
046e08d173 differenciate between type bind and expr bind 2024-02-24 12:28:10 +00:00
André Videla
0ed65eb587 desugar autobind properly 2024-02-24 12:28:10 +00:00
André Videla
b8d81b768e add autobind keyword 2024-02-24 12:28:10 +00:00
André Videla
1d7d07a667 add test file 2024-02-24 12:28:10 +00:00
Mathew Polzin
d497a7af5f
[new] zsh completion script (#3216) 2024-02-23 14:12:22 -06:00