aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.cpp')
-rw-r--r--src/repl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index ae49b00..114ff58 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -27,7 +27,7 @@
using namespace std;
static bool
-readParseType(CEnv& cenv, Cursor& cursor, istream& is, AST*& exp, const AST*& ast)
+readParseType(CEnv& cenv, Cursor& cursor, istream& is, const AST*& exp, const AST*& ast)
{
try {
exp = read_expression(cenv.penv, cursor, is);
@@ -81,7 +81,7 @@ callPrintCollect(CEnv& cenv, CFunc f, const AST* result, const AType* resultT, b
int
eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute)
{
- AST* exp = NULL;
+ const AST* exp = NULL;
const AST* ast = NULL;
typedef list<const AST*> Parsed;
@@ -160,7 +160,7 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute)
int
repl(CEnv& cenv)
{
- AST* exp = NULL;
+ const AST* exp = NULL;
const AST* ast = NULL;
const string replFnName = cenv.penv.gensymstr("_repl");
while (1) {