mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-27 17:18:48 +00:00
Added static call
This commit is contained in:
parent
2bfebc93f8
commit
e529ba1472
8 changed files with 134 additions and 70 deletions
|
|
@ -10,7 +10,7 @@ $(TESTS): %: %.expr
|
|||
@echo $@
|
||||
# @$(RC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
|
||||
cat $@.input | $(RC) -i $< > $@.log && diff $@.log orig/$@.log
|
||||
cat $@.input | $(RC) -s $< 2> /dev/null > $@.log && diff $@.log orig/$@.log
|
||||
cat $@.input | $(RC) -s $< > $@.log && diff $@.log orig/$@.log
|
||||
|
||||
clean:
|
||||
$(RM) test*.log *.s *~ $(TESTS)
|
||||
|
|
|
|||
1
regression/orig/test067.log
Normal file
1
regression/orig/test067.log
Normal file
|
|
@ -0,0 +1 @@
|
|||
> 12
|
||||
5
regression/test067.expr
Normal file
5
regression/test067.expr
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
infixr "**" before "*" (f, g) {
|
||||
return fun (x) {return f (g (x))}
|
||||
}
|
||||
|
||||
write ((fun (x) {return x+2} ** fun (x) {return x+3})(7))
|
||||
1
regression/test067.input
Normal file
1
regression/test067.input
Normal file
|
|
@ -0,0 +1 @@
|
|||
5
|
||||
Loading…
Add table
Add a link
Reference in a new issue