Skip to content

Commit c1be87d

Browse files
committed
Fix optional dependency on CL-Yacc
1 parent b195312 commit c1be87d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clpython.asd

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@
4949
(:file "aupprint")))))
5050

5151
;;; In Allegro, which provides its own Yacc, CL-Yacc can optionally be used.
52-
;;; In other implementations, Allegro Yacc is unavailable
52+
;;; In other implementations CL-Yacc must be used.
5353
(when (asdf:find-system "yacc" nil)
54-
(pushnew :use-cl-yacc *features*))
54+
(pushnew :have-cl-yacc *features*))
5555

5656
(defsystem "clpython/parser"
5757
:description "Python parser, code walker, and pretty printer"
5858
:depends-on ("clpython/basic"
5959
"closer-mop"
60-
(:feature (:or :allegro :use-cl-yacc) "yacc"))
60+
(:feature (:or (:not :allegro) :have-cl-yacc) "yacc"))
6161
:components ((:module "parser"
6262
:components ((:file "grammar" )
6363
(:file "lexer" :depends-on ("grammar"))
6464
(:file "parser" :depends-on ("grammar" "lexer"))
6565
(:file "grammar-aclyacc" :depends-on ("grammar" "lexer" "parser") :if-feature :allegro)
66-
(:file "grammar-clyacc" :depends-on ("grammar" "lexer" "parser") :if-feature :use-cl-yacc)
66+
(:file "grammar-clyacc" :depends-on ("grammar" "lexer" "parser") :if-feature (:or (:not :allegro) :have-cl-yacc))
6767
(:file "ast-util" :depends-on ("grammar"))
6868
(:file "walk" )
6969
(:file "pprint" )))))

0 commit comments

Comments
 (0)