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;
|
use Data::Dumper;
|
||||||
|
|
||||||
my $term = <<EOF;
|
my $term = <<EOF;
|
||||||
(progn
|
(let
|
||||||
(print "Hello")
|
((avg-4 (lambda (a b c d) (/ (+ a b c d) 4))))
|
||||||
(print "World")
|
(write-line (avg-4 1 2 3 4))
|
||||||
(print a)
|
(write-line (avg-4 2 3 4 5)))
|
||||||
1)
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
my $parsed = Minilisp::compile($term);
|
my $parsed = Minilisp::compile($term);
|
||||||
|
|
Loading…
Reference in a new issue