Minilisp.pm/tool/run.pl
2021-04-05 04:03:47 +02:00

17 lines
283 B
Perl
Executable file

#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../lib";
use Minilisp;
my $scriptfile = shift;
die "No script file provided." unless defined $scriptfile && -f $scriptfile;
my $parsed = Minilisp::compile_file($scriptfile);
$parsed->();
exit 0;