mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Massive renaming
This commit is contained in:
parent
241ab0a9ae
commit
61296c51e7
152 changed files with 45 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
12
stdlib/regression/orig/test17.log
Normal file
12
stdlib/regression/orig/test17.log
Normal 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
|
||||
4
stdlib/regression/test17.lama
Normal file
4
stdlib/regression/test17.lama
Normal 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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue