Update test program
This commit is contained in:
parent
222c8dfc8b
commit
7e7defbb9a
1 changed files with 4 additions and 5 deletions
9
test.pl
9
test.pl
|
@ -4,11 +4,10 @@ use Minilisp;
|
|||
use Data::Dumper;
|
||||
|
||||
my $term = <<EOF;
|
||||
(progn
|
||||
(print "Hello")
|
||||
(print "World")
|
||||
(print a)
|
||||
1)
|
||||
(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)))
|
||||
EOF
|
||||
|
||||
my $parsed = Minilisp::compile($term);
|
||||
|
|
Loading…
Reference in a new issue