Idris2/src
Ohad Kammar 83793113ba First steps towards emacs idris-mode compatibility
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.
2020-05-22 01:01:55 +01:00
..
Algebra Add to Core.TT 2020-05-16 19:42:48 +01:00
Compiler Add missing Racket requires 2020-05-19 18:06:52 +01:00
Control Checking up to TTImp.Elab.Term 2020-05-17 01:20:53 +01:00
Core Write Ints as 64 bit 2020-05-19 16:25:58 +01:00
Data Add missing files (I knew there'd be a couple...) 2020-05-18 00:28:24 +01:00
Idris First steps towards emacs idris-mode compatibility 2020-05-22 01:01:55 +01:00
Parser Create new mapError utility function and refactor some parser code 2020-05-19 11:08:21 -05:00
Text First working version! 2020-05-18 00:24:37 +01:00
TTImp First working version! 2020-05-18 00:24:37 +01:00
Utils Merge pull request #6 from LibreCybernetics/refactor-mapError 2020-05-20 12:55:33 +01:00
Yaffle Ported up to Idris.ModTree 2020-05-17 14:26:04 +01:00
Algebra.idr Add to Core.TT 2020-05-16 19:42:48 +01:00