mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 16:21:46 +03:00
83793113ba
To make sure the protocol doesn't jam, supply stub implementation to all protocol commands. Report to REPL when an unimplemented command is used. Notes ----- 1. We don't support add-proof-clause. I guess all proof-related stuff should be removed from the protocol 2. Some types are stub types too. That's because we need to `SExpable` more structured types like `PTerm`. I'll leave that to the future. 3. I've lifted `REPLResult` into `IDEResult` inside `IDEMode/REPL.idr`. That's because some results, like `who-calls` only make sense in the context of an IDE, not in the context of a user-facing REPL. The Editing commands should be moved from the REPL into the IDE and called from the REPL. I leave that to the future, once more of the protocol is implemented. 4. Export a few functions from the REPL so that the IDE can call them. 5. There's one outstanding issue with the emacs idris-mode: it currently calls the unsupported `:consolewidth` REPL command. This is harmless, and can wait until @edwinb decides whether we should support it in the future or not. 6. There was a bug as to how holes are returned to the user. The format isn't documented in the protocol, so we'll need to reproduce it, perhaps from the idris-mode elisp sources. |
||
---|---|---|
.. | ||
Algebra | ||
Compiler | ||
Control | ||
Core | ||
Data | ||
Idris | ||
Parser | ||
Text | ||
TTImp | ||
Utils | ||
Yaffle | ||
Algebra.idr |