docs/step_notes.txt: add step0_repl details.
authorJoel Martin <github@martintribe.org>
Sat, 4 Oct 2014 23:34:49 +0000 (18:34 -0500)
committerJoel Martin <github@martintribe.org>
Sat, 4 Oct 2014 23:34:49 +0000 (18:34 -0500)
c/Makefile
docs/step_notes.txt

index b8d3130..e18d81f 100644 (file)
@@ -53,7 +53,7 @@ $(BINS): %: %.o
 clean:
        rm -f $(OBJS) $(BINS) $(OTHER_OBJS) mal
 
-.PHONY: stats tests $(TESTS)
+.PHONY: stats stats-lisp tests $(TESTS)
 
 stats: $(SOURCES)
        @wc $^
index 09bc356..117470f 100644 (file)
@@ -4,6 +4,19 @@ Step Notes:
     - prompt, input, READ, EVAL, PRINT, output
     - readline module
         - display prompt, read line of input
+    - Details:
+        - get your language compiler/interpreter running
+        - create step0_repl.EXT
+            - loop that reads input, calls rep, writes output, exits
+              on EOF/Ctrl-D
+            - rep calls PRINT(EVAL(READ(str)))
+            - READ, EVAL, PRINT just return input parameter
+        - modify toplevel Makefile
+            - add language (directory name) to IMPLS
+            - add <lang>_STEP_TO_PROG entry
+            - add <lang>_RUNSTEP entry
+        - for a compiled language, add <lang>/Makefile
+            - targets: all, step*, stats, stats-lisp, 
 
 - use native eval in EVAL if available