aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-09-30 12:45:47 +0000
committerDavid Robillard <d@drobilla.net>2010-09-30 12:45:47 +0000
commit0faa00e9dfd221016ad26b5629617949fcce4676 (patch)
tree91ae7796712c83f8a3d9889b97b97ed8c630cfe7 /src/repl.cpp
parentc5e2f5dbb8922ba9bc5baa8e3194be89cb64f367 (diff)
downloadresp-0faa00e9dfd221016ad26b5629617949fcce4676.tar.gz
resp-0faa00e9dfd221016ad26b5629617949fcce4676.tar.bz2
resp-0faa00e9dfd221016ad26b5629617949fcce4676.zip
Preliminary work on algebraic data types and run-time typing.
git-svn-id: http://svn.drobilla.net/resp/resp@270 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/repl.cpp')
-rw-r--r--src/repl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index 5850e66..0264c18 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -159,6 +159,9 @@ eval(CEnv& cenv, const string& name, istream& is, bool execute)
// Finish compilation
cenv.engine()->finishFunction(cenv, f, val);
+ if (cenv.args.find("-d") != cenv.args.end())
+ cenv.engine()->writeModule(cenv, cenv.out);
+
// Call and print ast
if (cenv.args.find("-S") == cenv.args.end())
callPrintCollect(cenv, f, ast, type, execute);