Loading Builtin.pm +3 −3 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ sub Bdescribe { return array2list($type, $ob, symbol_plist($ob)); } elsif ($type == $t_Function) { return array2list(specialp($ob) ? $special : $function, consp($ob) ? $Lambda : $builtin, consp($ob->{func}) ? $Lambda : $builtin, function_documentation($ob), $ob); } else { return array2list($type, $ob); Loading Loading @@ -161,7 +161,7 @@ sub Berrset { } else { my $err = $@; chomp($err); set(intern($last_error), $err); set(intern($n_last_error), $err); return $Nil; } } Loading Loading @@ -468,7 +468,7 @@ sub Blambda { sub Bkappa { my ($params, $body) = checkargs($_[0], 'lr'); return make_lambda($params, $body, 1, $Lambda); return make_lambda($params, $body, 1, $Kappa); } sub make_lambda { Loading Fundamental.lisp +1 −0 Original line number Diff line number Diff line Loading @@ -515,6 +515,7 @@ (eval-list bodyforms))) (defspecial cond (&rest clauses) "eval the car of each of CLAUSES until true, then the rest of this clause" (if (null clauses) nil (let ((clause (car clauses))) Loading Global.pm +15 −10 Original line number Diff line number Diff line Loading @@ -14,13 +14,16 @@ use Exporter (); my $debugfh = \*STDOUT; BEGIN { @ISA = qw(Exporter); @EXPORT = qw($Nil $T $Sym $Pair $Function $function $special $builtin $Quote error $Leval $andRest $Lambda $Princs $last_error $ARGS our $t_Symbol $t_Number $t_String $t_Pair $t_Function @EXPORT = qw($Nil $T $n_Symbol $n_Pair $n_Function $n_function $special $builtin $function $Quote error $Leval $andRest $Lambda $Princs $n_last_error $n_ARGS our $t_Symbol $t_Number $t_String $t_Pair $t_Function ftrace $andOptional $Kappa ); } # some symbols our $Nil; # the nil symbol our $T; # the t symbol our $andRest; # the &rest token symbol Loading @@ -30,20 +33,22 @@ our $Kappa; # the kappa symbol our $Princs; # the printer function our $special; our $builtin; our $function; # object types # object types, all Symbols our $t_Symbol; our $t_Number; our $t_String; our $t_Pair; our $t_Function; our $Sym = 'Symbol'; our $Pair = 'Pair'; our $Function = 'Function'; our $function = 'function'; our $last_error = '*last-error*'; our $ARGS = '*ARGS*'; # a few symbol names our $n_Symbol = 'Symbol'; our $n_Pair = 'Pair'; our $n_Function = 'Function'; our $n_function = 'function'; our $n_last_error = '*last-error*'; our $n_ARGS = '*ARGS*'; our $Quote = 'quote'; Loading Lis.pl +2 −2 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ my @argv_save = @ARGV; load("Fundamental.lisp", 0, $opt_quiet) or exit(1); set(intern($ARGS), $Nil); set(intern($n_ARGS), $Nil); @ARGV = @argv_save; ARGS2: while ($ARGV[0] && $ARGV[0] =~ /^-/) { Loading @@ -69,7 +69,7 @@ set(intern($ARGS), $Nil); } my $loadfile_arg = shift(@ARGV) // ''; set(intern($ARGS), array2list(@ARGV)); set(intern($n_ARGS), array2list(@ARGV)); if ($loadfile_arg) { load($loadfile_arg); Loading Read.pm +1 −1 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ sub Read { } elsif ($t eq '#\'') { $t = Read($in); return error("EOF in quote %s", $in) unless defined($t); return list(intern($function), $t); return list(intern($n_function), $t); } elsif ($t eq '.') { return error("found . where sexpr was expected: %s", $in); } elsif (symbolp($t)) { Loading Loading
Builtin.pm +3 −3 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ sub Bdescribe { return array2list($type, $ob, symbol_plist($ob)); } elsif ($type == $t_Function) { return array2list(specialp($ob) ? $special : $function, consp($ob) ? $Lambda : $builtin, consp($ob->{func}) ? $Lambda : $builtin, function_documentation($ob), $ob); } else { return array2list($type, $ob); Loading Loading @@ -161,7 +161,7 @@ sub Berrset { } else { my $err = $@; chomp($err); set(intern($last_error), $err); set(intern($n_last_error), $err); return $Nil; } } Loading Loading @@ -468,7 +468,7 @@ sub Blambda { sub Bkappa { my ($params, $body) = checkargs($_[0], 'lr'); return make_lambda($params, $body, 1, $Lambda); return make_lambda($params, $body, 1, $Kappa); } sub make_lambda { Loading
Fundamental.lisp +1 −0 Original line number Diff line number Diff line Loading @@ -515,6 +515,7 @@ (eval-list bodyforms))) (defspecial cond (&rest clauses) "eval the car of each of CLAUSES until true, then the rest of this clause" (if (null clauses) nil (let ((clause (car clauses))) Loading
Global.pm +15 −10 Original line number Diff line number Diff line Loading @@ -14,13 +14,16 @@ use Exporter (); my $debugfh = \*STDOUT; BEGIN { @ISA = qw(Exporter); @EXPORT = qw($Nil $T $Sym $Pair $Function $function $special $builtin $Quote error $Leval $andRest $Lambda $Princs $last_error $ARGS our $t_Symbol $t_Number $t_String $t_Pair $t_Function @EXPORT = qw($Nil $T $n_Symbol $n_Pair $n_Function $n_function $special $builtin $function $Quote error $Leval $andRest $Lambda $Princs $n_last_error $n_ARGS our $t_Symbol $t_Number $t_String $t_Pair $t_Function ftrace $andOptional $Kappa ); } # some symbols our $Nil; # the nil symbol our $T; # the t symbol our $andRest; # the &rest token symbol Loading @@ -30,20 +33,22 @@ our $Kappa; # the kappa symbol our $Princs; # the printer function our $special; our $builtin; our $function; # object types # object types, all Symbols our $t_Symbol; our $t_Number; our $t_String; our $t_Pair; our $t_Function; our $Sym = 'Symbol'; our $Pair = 'Pair'; our $Function = 'Function'; our $function = 'function'; our $last_error = '*last-error*'; our $ARGS = '*ARGS*'; # a few symbol names our $n_Symbol = 'Symbol'; our $n_Pair = 'Pair'; our $n_Function = 'Function'; our $n_function = 'function'; our $n_last_error = '*last-error*'; our $n_ARGS = '*ARGS*'; our $Quote = 'quote'; Loading
Lis.pl +2 −2 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ my @argv_save = @ARGV; load("Fundamental.lisp", 0, $opt_quiet) or exit(1); set(intern($ARGS), $Nil); set(intern($n_ARGS), $Nil); @ARGV = @argv_save; ARGS2: while ($ARGV[0] && $ARGV[0] =~ /^-/) { Loading @@ -69,7 +69,7 @@ set(intern($ARGS), $Nil); } my $loadfile_arg = shift(@ARGV) // ''; set(intern($ARGS), array2list(@ARGV)); set(intern($n_ARGS), array2list(@ARGV)); if ($loadfile_arg) { load($loadfile_arg); Loading
Read.pm +1 −1 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ sub Read { } elsif ($t eq '#\'') { $t = Read($in); return error("EOF in quote %s", $in) unless defined($t); return list(intern($function), $t); return list(intern($n_function), $t); } elsif ($t eq '.') { return error("found . where sexpr was expected: %s", $in); } elsif (symbolp($t)) { Loading