Massive renaming

This commit is contained in:
Dmitry Boulytchev 2020-02-16 00:21:15 +03:00
parent 241ab0a9ae
commit 61296c51e7
152 changed files with 45 additions and 29 deletions

View file

@ -1,14 +1,14 @@
TESTS=$(sort $(basename $(wildcard test*.expr)))
TESTS=$(sort $(basename $(wildcard test*.lama)))
RC=../../src/rc.opt
LAMAC=../../src/lamac
.PHONY: check $(TESTS)
check: $(TESTS)
$(TESTS): %: %.expr
$(TESTS): %: %.lama
@echo $@
RC_RUNTIME=../../runtime $(RC) -I .. -ds -dp $< && ./$@ > $@.log && diff $@.log orig/$@.log
LAMA=../../runtime $(LAMAC) -I .. -ds -dp $< && ./$@ > $@.log && diff $@.log orig/$@.log
clean:
$(RM) test*.log *.s *~ $(TESTS) *.i

View file

@ -0,0 +1,12 @@
Lazy body: 0
Lazy body: 1
Lazy body: 2
Lazy body: 3
Lazy body: 4
Lazy body: 5
Lazy body: 6
Lazy body: 7
Lazy body: 8
Lazy body: 9
First force: 100
Second force: 100

View file

@ -0,0 +1,4 @@
local x = lazy (for local i; i := 0, i<10, i := i + 1 do printf ("Lazy body: %d\n", i) od; 100);
printf ("First force: %d\n", force (x));
printf ("Second force: %d\n", force (x))