diff options
author | David Robillard <d@drobilla.net> | 2010-12-09 01:57:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-09 01:57:52 +0000 |
commit | 39af9fe79809a67c837485d8edcae6b9246c5fa6 (patch) | |
tree | 159b854110774669e410116f89de10f85d3e2b2d /src/repl.cpp | |
parent | e759ca41e4ba831279b1495c6713d79ad10ab6f9 (diff) | |
download | resp-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.cpp | 6 |
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) { |