Use new tokenizer
authorUlrich Hoffmann <uho@xlerb.de>
Fri, 31 Jan 2020 13:12:10 +0000 (14:12 +0100)
committerUlrich Hoffmann <uho@xlerb.de>
Fri, 31 Jan 2020 13:12:10 +0000 (14:12 +0100)
1  2 
preForth/Makefile
preForth/seed

@@@ -9,14 -19,36 +9,21 @@@ HOSTFORTH=gfort
  # ------------------------------------------------------------------------
  
  .PHONY=all
- all: preForth runseedforthdemo
 -all: preForth simpleForth forth runforth
++all: preForth seedForth seedForthDemo.seed seedForthInteractive.seed
 -.PHONY=runforth
 -runforth: ./forth hi.forth
 -      cat hi.forth - | ./forth
++.PHONY=test
++test: runseedforthdemo runseedforthinteractive
  
 -.PHONY=runseedforth
 -runseedforth: seedForth seedForthDemo.seed
 +.PHONY=runseedforthdemo
 +runseedforthdemo: seedForth seedForthDemo.seed
        cat seedForthDemo.seed | ./seedForth
  
 -.PHONY=test
 -test: preForth.pre preForth-$(PLATFORM)-backend.pre load-$(PLATFORM)-preForth.fs 
 -      cat preForth-$(PLATFORM)-backend.pre simpleForth.pre | $(HOSTFORTH) load-$(PLATFORM)-preForth.fs 
 -
 -# preForth connected to stdin - output to stdout
 -.PHONY=visible-bootstrap
 -visible-bootstrap: preForth preForth-$(PLATFORM)-backend.pre preForth.pre 
 -      cat preForth-$(PLATFORM)-backend.pre preForth.pre | ./preForth
 -
 -# ------------------------------------------------------------------------
 -# i386 version MacOS and Linux
 -# ------------------------------------------------------------------------
 -ifeq ($(PLATFORM),C)
 -  UNIXFLAVOUR=stdC
 -  EXT=c
 -else
 -  UNIXFLAVOUR=$(shell uname -s)
 -  EXT=asm
 -endif
++.PHONY=runseedfortinteractive
++runseedforthinteractive: seedForth seedForthInteractive.seed
++      ./seed
 +UNIXFLAVOUR=$(shell uname -s)
 +EXT=asm
  
  seedForth-i386.asm: seedForth-i386.pre preForth
        cat seedForth-i386.pre | ./preForth >seedForth-i386.asm
@@@ -94,4 -153,4 +101,4 @@@ seedForth: seedForth.$(UNIXFLAVOUR
  
  .PHONY=clean
  clean:
-       rm -f *.asm *.o *.fas *.s *.c *.Darwin *.Linux preForthdemo preForth forth seedForth seedForthDemo.seed
 -      rm -f *.asm *.o *.fas *.s *.c *.Darwin *.Linux preForthdemo simpleForthDemo simpleForth preForth forth seedForth seedForthDemo.seed
++      rm -f *.asm *.o *.fas *.s *.c *.Darwin *.Linux preForthdemo preForth forth seedForth seedForthDemo.seed seedForthInteractive.seed
diff --cc preForth/seed
index 0000000,3f900cd..52ff983
mode 000000,100755..100755
--- /dev/null
@@@ -1,0 -1,6 +1,6 @@@
 -stty cooked
+ #!/bin/bash
+ stty raw -echo
+ cat seedForthInteractive.seed hi.forth - | ./seedForth
++stty sane