mirror of
https://github.com/ProgramSnail/Lama.git
synced 2026-01-01 11:38:20 +00:00
Initial commit of fcf
This commit is contained in:
parent
d130d197b3
commit
1cfd3123be
6 changed files with 84 additions and 54 deletions
|
|
@ -8,9 +8,9 @@ check: $(TESTS)
|
|||
|
||||
$(TESTS): %: %.expr
|
||||
@echo $@
|
||||
@$(RC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
|
||||
@cat $@.input | $(RC) -i $< > $@.log && diff $@.log orig/$@.log
|
||||
@cat $@.input | $(RC) -s $< > $@.log && diff $@.log orig/$@.log
|
||||
# @$(RC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
|
||||
cat $@.input | $(RC) -i $< > $@.log && diff $@.log orig/$@.log
|
||||
# @cat $@.input | $(RC) -s $< > $@.log && diff $@.log orig/$@.log
|
||||
|
||||
clean:
|
||||
$(RM) test*.log *.s *~ $(TESTS)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
local x, y, z;
|
||||
read (x);
|
||||
read (y);
|
||||
z := x*y*3;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
fun printAS (x) local i, j {
|
||||
fun printAS (x) {
|
||||
local i, j;
|
||||
for i := 0, i<x.length, i:=i+1 do
|
||||
for j := 0, j<x[i].length, j:=j+1 do
|
||||
write (x[i][j])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue