From ba782e2c5c3849bba6c63e4d5a6ea67ca185063b Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sat, 4 Oct 2014 18:34:49 -0500 Subject: docs/step_notes.txt: add step0_repl details. --- c/Makefile | 2 +- docs/step_notes.txt | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/c/Makefile b/c/Makefile index b8d3130..e18d81f 100644 --- a/c/Makefile +++ b/c/Makefile @@ -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 $^ diff --git a/docs/step_notes.txt b/docs/step_notes.txt index 09bc356..117470f 100644 --- a/docs/step_notes.txt +++ b/docs/step_notes.txt @@ -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 _STEP_TO_PROG entry + - add _RUNSTEP entry + - for a compiled language, add /Makefile + - targets: all, step*, stats, stats-lisp, - use native eval in EVAL if available -- cgit v1.2.3