spl

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ba49954d82f30aee8a68100f21cfa62f017e5d8a
parent 9d60becbda4e8138e00b15b68bc0edbb53356f2b
Author: Brian Swetland <swetland@frotz.net>
Date:   Fri, 13 Oct 2023 18:55:42 -0700

rename source files from .src to .spl

Diffstat:
MMakefile | 14+++++++-------
Rdemo/echo.src -> demo/echo.spl | 0
Rdemo/hello.src -> demo/hello.spl | 0
Rtest/1000-return-42.src -> test/1000-return-42.spl | 0
Rtest/1010-func-call.src -> test/1010-func-call.spl | 0
Rtest/1011-func-call-forward.src -> test/1011-func-call-forward.spl | 0
Rtest/1012-func-call-builtin.src -> test/1012-func-call-builtin.spl | 0
Rtest/1020-math-1.src -> test/1020-math-1.spl | 0
Rtest/1021-numbers.src -> test/1021-numbers.spl | 0
Rtest/1024-xorshift32.src -> test/1024-xorshift32.spl | 0
Rtest/1025-fibonacci.src -> test/1025-fibonacci.spl | 0
Rtest/1026-fib-iter.src -> test/1026-fib-iter.spl | 0
Rtest/1030-flow-control.src -> test/1030-flow-control.spl | 0
Rtest/1031-logical-and-or.src -> test/1031-logical-and-or.spl | 0
Rtest/1040-structs.src -> test/1040-structs.spl | 0
Rtest/1041-arrays.src -> test/1041-arrays.spl | 0
Rtest/1042-arrays2.src -> test/1042-arrays2.spl | 0
Rtest/1045-list.src -> test/1045-list.spl | 0
Rtest/1050-enums.src -> test/1050-enums.spl | 0
Rtest/2000-err-decl-mismatch-type.src -> test/2000-err-decl-mismatch-type.spl | 0
Rtest/2001-err-decl-mismatch-return.src -> test/2001-err-decl-mismatch-return.spl | 0
Rtest/2002-err-decl-mismatch-count.src -> test/2002-err-decl-mismatch-count.spl | 0
Rtest/2003-err-decl-mismatch-array.src -> test/2003-err-decl-mismatch-array.spl | 0
Rtest/2010-err-array-init-too-large.src -> test/2010-err-array-init-too-large.spl | 0
Rtest/2011-err-array-oob-const.src -> test/2011-err-array-oob-const.spl | 0
Rtest/2020-err-u32-overflow.src -> test/2020-err-u32-overflow.spl | 0
Rtest/2021-err-u32-hex-overflow.src -> test/2021-err-u32-hex-overflow.spl | 0
Rtest/2022-err-u32-bin-overflow.src -> test/2022-err-u32-bin-overflow.spl | 0
Rtest/2030-err-bad-break.src -> test/2030-err-bad-break.spl | 0
Rtest/2031-err-bad-continue.src -> test/2031-err-bad-continue.spl | 0
Mtools/compile | 2+-
Mtools/runtest | 2+-
32 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile @@ -15,28 +15,28 @@ clean:: # have to have two rules here otherwise tests without .log files -# fail to be compiled by the rule that depends on src+log *or* +# fail to be compiled by the rule that depends on spl+log *or* # we fail to depend on the .log for tests with both... TESTDEPS := bin/compiler0 tools/runtest tools/compile TESTDEPS += $(wildcard inc/*.h) $(wildcard inc/*.c) -out/test/%.txt: test/%.src test/%.log $(TESTDEPS) +out/test/%.txt: test/%.spl test/%.log $(TESTDEPS) @mkdir -p out/test @rm -f $@ @tools/runtest $< $@ -out/test/%.txt: test/%.src $(TESTDEPS) +out/test/%.txt: test/%.spl $(TESTDEPS) @mkdir -p out/test @rm -f $@ @tools/runtest $< $@ -SRCTESTS := $(sort $(wildcard test/*.src)) -ALLTESTS := $(patsubst test/%.src,out/test/%.txt,$(SRCTESTS)) +SRCTESTS := $(sort $(wildcard test/*.spl)) +ALLTESTS := $(patsubst test/%.spl,out/test/%.txt,$(SRCTESTS)) out/test/summary.txt: $(ALLTESTS) @cat $(ALLTESTS) > $@ -%: test/%.src - @$(MAKE) $(patsubst %.src,out/%.txt,$<) +%: test/%.spl + @$(MAKE) $(patsubst %.spl,out/%.txt,$<) diff --git a/demo/echo.src b/demo/echo.spl diff --git a/demo/hello.src b/demo/hello.spl diff --git a/test/1000-return-42.src b/test/1000-return-42.spl diff --git a/test/1010-func-call.src b/test/1010-func-call.spl diff --git a/test/1011-func-call-forward.src b/test/1011-func-call-forward.spl diff --git a/test/1012-func-call-builtin.src b/test/1012-func-call-builtin.spl diff --git a/test/1020-math-1.src b/test/1020-math-1.spl diff --git a/test/1021-numbers.src b/test/1021-numbers.spl diff --git a/test/1024-xorshift32.src b/test/1024-xorshift32.spl diff --git a/test/1025-fibonacci.src b/test/1025-fibonacci.spl diff --git a/test/1026-fib-iter.src b/test/1026-fib-iter.spl diff --git a/test/1030-flow-control.src b/test/1030-flow-control.spl diff --git a/test/1031-logical-and-or.src b/test/1031-logical-and-or.spl diff --git a/test/1040-structs.src b/test/1040-structs.spl diff --git a/test/1041-arrays.src b/test/1041-arrays.spl diff --git a/test/1042-arrays2.src b/test/1042-arrays2.spl diff --git a/test/1045-list.src b/test/1045-list.spl diff --git a/test/1050-enums.src b/test/1050-enums.spl diff --git a/test/2000-err-decl-mismatch-type.src b/test/2000-err-decl-mismatch-type.spl diff --git a/test/2001-err-decl-mismatch-return.src b/test/2001-err-decl-mismatch-return.spl diff --git a/test/2002-err-decl-mismatch-count.src b/test/2002-err-decl-mismatch-count.spl diff --git a/test/2003-err-decl-mismatch-array.src b/test/2003-err-decl-mismatch-array.spl diff --git a/test/2010-err-array-init-too-large.src b/test/2010-err-array-init-too-large.spl diff --git a/test/2011-err-array-oob-const.src b/test/2011-err-array-oob-const.spl diff --git a/test/2020-err-u32-overflow.src b/test/2020-err-u32-overflow.spl diff --git a/test/2021-err-u32-hex-overflow.src b/test/2021-err-u32-hex-overflow.spl diff --git a/test/2022-err-u32-bin-overflow.src b/test/2022-err-u32-bin-overflow.spl diff --git a/test/2030-err-bad-break.src b/test/2030-err-bad-break.spl diff --git a/test/2031-err-bad-continue.src b/test/2031-err-bad-continue.spl diff --git a/tools/compile b/tools/compile @@ -1,7 +1,7 @@ #!/bin/bash -e src="$1" -base="${src%.src}" +base="${src%.spl}" out="out/${base}" if [ ! -e "${src}" ] ; then echo error: cannot find "${src}" ; exit 1 ; fi diff --git a/tools/runtest b/tools/runtest @@ -10,7 +10,7 @@ bin="${txt%.txt}.bin" lst="${txt%.txt}.lst" log="${txt%.txt}.log" msg="${txt%.txt}.msg" -gold="${src%.src}.log" +gold="${src%.spl}.log" echo "RUNTEST: $src: compiling..." if tools/compile "$src" 2> "$msg"; then