diff options
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 5e2741c..e808dd8 100644 --- a/src/repl.cpp +++ b/src/repl.cpp @@ -99,7 +99,7 @@ compile(CEnv& cenv, const Code& parsed, Code& defs, bool& hasMain, const char* m } return dump(cenv, cps); } - + struct Pass { const RespPass* pass; ///< Pass function const char* option; ///< Command line option to stop and dump here @@ -158,14 +158,14 @@ compile(CEnv& cenv, const Code& parsed, Code& defs, bool& hasMain, const char* m List mainT(Cursor(), cenv.penv.sym("lambda"), new ATuple(Cursor()), retT, NULL); cenv.def(main, NULL, mainT, NULL); - + defs.push_back( tup(Cursor(), cenv.penv.sym("fn-start"), main, NULL)); const AST* mainRet = NULL; for (auto e : exprs) mainRet = resp_flatten(cenv, defs, e); - + defs.push_back( tup(Cursor(), cenv.penv.sym("fn-end"), main, mainRet, NULL)); } |