Added static call

This commit is contained in:
Dmitry Boulytchev 2019-10-14 19:44:33 +03:00
parent 2bfebc93f8
commit e529ba1472
8 changed files with 134 additions and 70 deletions

View file

@ -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)

View file

@ -0,0 +1 @@
> 12

5
regression/test067.expr Normal file
View 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
View file

@ -0,0 +1 @@
5