Skip to content

Commit

Permalink
[cl-backend] hack around xspan and disable the beta reduction pass
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Feb 27, 2011
1 parent dbcf870 commit 78147ba
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
5 changes: 3 additions & 2 deletions cl-backend/backend.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@

; Hacks

(nam-op ehspan (class name unused start end goto) )
(nam-op span (n1 n2 sync body) body)
;(nam-op ehspan (class name unused start end goto) )
;(nam-op span (n1 n2 sync body) body)
(nam-op xspan (n1 n2 flag body dunno1 dunno2 dunno3) body)

(defun strip-ann (thing)
(if (consp thing)
Expand Down
20 changes: 15 additions & 5 deletions src/niecza
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,20 @@ else {
exit 1;
}

my $stages;
if $bcnd eq 'clisp' {
$stages = [
NieczaPassBegin.new,
NieczaPassSimplifier.new,
];
} else {
$stages = [
NieczaPassBegin.new,
NieczaPassBeta.new,
NieczaPassSimplifier.new,
];
}

my $c = NieczaCompiler.new(
module_finder => NieczaPathSearch.new(
path => @lib,
Expand All @@ -358,11 +372,7 @@ my $c = NieczaCompiler.new(
lang => $safe ?? 'SAFE' !! $lang,
safemode => $safe,
),
stages => [
NieczaPassBegin.new,
NieczaPassBeta.new,
NieczaPassSimplifier.new,
],
stages => $stages,
backend => $backend,
verbose => $verb,
);
Expand Down

0 comments on commit 78147ba

Please sign in to comment.