Update testprogram
This commit is contained in:
parent
bbf6ae9cbd
commit
2c8ce149a6
1 changed files with 4 additions and 4 deletions
8
test.pl
8
test.pl
|
@ -4,10 +4,10 @@ use Minilisp;
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
|
|
||||||
my $term = <<EOF;
|
my $term = <<EOF;
|
||||||
(let
|
(progn
|
||||||
((avg-4 (lambda (a b c d) (/ (+ a b c d) 4))))
|
(defun avg-2 (a b) (/ (+ a b) 2))
|
||||||
(write-line (avg-4 1 2 3 4))
|
|
||||||
(write-line (avg-4 2 3 4 5)))
|
(write-line (avg-2 1 19)))
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
my $parsed = Minilisp::compile($term);
|
my $parsed = Minilisp::compile($term);
|
||||||
|
|
Loading…
Reference in a new issue