aboutsummaryrefslogtreecommitdiff
path: root/cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs')
-rw-r--r--cs/Makefile4
-rw-r--r--cs/stepA_mal.cs (renamed from cs/stepA_interop.cs)6
2 files changed, 5 insertions, 5 deletions
diff --git a/cs/Makefile b/cs/Makefile
index 1fd1f7a..70d54ad 100644
--- a/cs/Makefile
+++ b/cs/Makefile
@@ -5,7 +5,7 @@ DEBUG =
TESTS =
SOURCES_BASE = readline.cs types.cs reader.cs printer.cs
-SOURCES_LISP = env.cs core.cs stepA_interop.cs
+SOURCES_LISP = env.cs core.cs stepA_mal.cs
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
OTHER_SOURCES = getline.cs
@@ -14,7 +14,7 @@ OTHER_SOURCES = getline.cs
SRCS = step0_repl.cs step1_read_print.cs step2_eval.cs step3_env.cs \
step4_if_fn_do.cs step5_tco.cs step6_file.cs step7_quote.cs \
- step8_macros.cs step9_try.cs stepA_interop.cs
+ step8_macros.cs step9_try.cs stepA_mal.cs
LIB_SRCS = $(filter-out step%,$(OTHER_SOURCES) $(SOURCES))
diff --git a/cs/stepA_interop.cs b/cs/stepA_mal.cs
index 2e8fc12..0ccb39e 100644
--- a/cs/stepA_interop.cs
+++ b/cs/stepA_mal.cs
@@ -14,7 +14,7 @@ using MalFunc = Mal.types.MalFunc;
using Env = Mal.env.Env;
namespace Mal {
- class stepA_interop {
+ class stepA_mal {
// read
static MalVal READ(string str) {
return reader.read_str(str);
@@ -231,10 +231,10 @@ namespace Mal {
}
repl_env.set(new MalSymbol("eval"), new MalFunc(
a => EVAL(a[0], repl_env)));
- int fileIdx = 1;
+ int fileIdx = 0;
if (args.Length > 0 && args[0] == "--raw") {
Mal.readline.mode = Mal.readline.Mode.Raw;
- fileIdx = 2;
+ fileIdx = 1;
}
MalList _argv = new MalList();
for (int i=fileIdx; i < args.Length; i++) {