aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-09 01:57:52 +0000
committerDavid Robillard <d@drobilla.net>2010-12-09 01:57:52 +0000
commit39af9fe79809a67c837485d8edcae6b9246c5fa6 (patch)
tree159b854110774669e410116f89de10f85d3e2b2d /src/repl.cpp
parente759ca41e4ba831279b1495c6713d79ad10ab6f9 (diff)
downloadresp-39af9fe79809a67c837485d8edcae6b9246c5fa6.tar.gz
resp-39af9fe79809a67c837485d8edcae6b9246c5fa6.tar.bz2
resp-39af9fe79809a67c837485d8edcae6b9246c5fa6.zip
Const-correct parser.
git-svn-id: http://svn.drobilla.net/resp/resp@323 ad02d1e2-f140-0410-9f75-f8b11f17cedd
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) {