Mercurial > hg > index.cgi
diff Makefile @ 121:5d5472b11ccd
Initital skeleton of separation of separate parsing scheme
This is the first commit in a long series related to separating the parsing
of the input code from the execution of the code. It should allow for more
efficient, and probably simpler, execution while giving quicker feedback
when someone types in syntactically invalid code.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sun, 31 Dec 2023 17:44:39 -0700 |
parents | a6a53e5c04bd |
children | 9d57279c900e |
line wrap: on
line diff
--- a/Makefile Sun Dec 31 17:42:39 2023 -0700 +++ b/Makefile Sun Dec 31 17:44:39 2023 -0700 @@ -1,7 +1,9 @@ .PHONY: all +CFLAGS ?= -Wall + all: bin/lwbasic.rom bin/lwbasic-coco2b.rom bin/lwbasic-coco3.rom bin/coco.zip bin/coco2.zip bin/coco2b.zip bin/coco3.zip -lwb_srcs := consscr.s defs.s error.s expr.s fps.s genio.s init.s int.s interp.s irq.s keyb.s keywords.s miscdata.s number.s print.s progctrl.s stack.s token.s vars.s +lwb_srcs := bytecode.s consscr.s defs.s error.s expr.s fps.s genio.s init.s int.s interp.s irq.s keyb.s keywords.s keywordtab.s miscdata.s number.s parse.s print.s progctrl.s stack.s token.s vars.s lwb_srcs := $(addprefix src/,$(lwb_srcs)) bin/lwbasic.rom: src/lwbasic.s $(lwb_srcs) @@ -11,11 +13,18 @@ bin/lwbasic-coco3.rom: src/lwbasic.s $(lwb_srcs) lwasm --6809 --tabs=16 --raw --list=src/lwbasic-coco3.list --symbols --output=bin/lwbasic-coco3.rom -DCOCO3=1 src/lwbasic.s +src/keywordtab.s: src/keywordlist.txt src/buildkeywordtab + ./src/buildkeywordtab src/keywordlist.txt src/keywordtab.s + +src/buildkeywordtab: src/buildkeywordtab.c + .PHONY: clean clean: rm -f bin/*.rom bin/*.zip rm -f src/*.list rm -f */*~ *~ + rm -f src/buildkeywordtab + rm -f src/keywordtab.s bin/coco2.zip: bin/lwbasic.rom mkdir -p coco2