From d36e804012a87ef1556bdb81be1fbf5c32c482a2 Mon Sep 17 00:00:00 2001 From: Nikita Vilunov Date: Sat, 6 Jun 2020 21:58:50 +0300 Subject: [PATCH 1/2] ":let" command for REPL --- src/Idris/Parser.idr | 17 +++++++++++++++++ src/Idris/REPL.idr | 16 ++++++++++++++++ src/Idris/Syntax.idr | 1 + 3 files changed, 34 insertions(+) diff --git a/src/Idris/Parser.idr b/src/Idris/Parser.idr index d8b69e006c..febb222eaf 100644 --- a/src/Idris/Parser.idr +++ b/src/Idris/Parser.idr @@ -1707,6 +1707,9 @@ data CmdArg : Type where ||| The command takes an expression. ExprArg : CmdArg + ||| The command takes a list of declarations + DeclsArg : CmdArg + ||| The command takes a number. NumberArg : CmdArg @@ -1721,6 +1724,7 @@ Show CmdArg where show NoArg = "" show NameArg = "" show ExprArg = "" + show DeclsArg = "" show NumberArg = "" show OptionArg = "