Update testprogram

This commit is contained in:
madmaurice 2021-04-02 01:07:23 +02:00
parent bbf6ae9cbd
commit 2c8ce149a6

View file

@ -4,10 +4,10 @@ use Minilisp;
use Data::Dumper;
my $term = <<EOF;
(let
((avg-4 (lambda (a b c d) (/ (+ a b c d) 4))))
(write-line (avg-4 1 2 3 4))
(write-line (avg-4 2 3 4 5)))
(progn
(defun avg-2 (a b) (/ (+ a b) 2))
(write-line (avg-2 1 19)))
EOF
my $parsed = Minilisp::compile($term);