0

I installed cl-yacc from quick lisp:

(ql:quickload "yacc")

I checked it is available.

[12]> (ql:system-apropos "yacc")
#<SYSTEM lispbuilder-yacc / lispbuilder-20130312-svn / quicklisp 2013-08-13>
#<SYSTEM yacc / cl-yacc-20101006-darcs / quicklisp 2013-08-13>

I tried to use the package, but I got errors.

[18]> (use-package '#:yacc)

*** - USE-PACKAGE: There is no package with name "YACC"
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead.
ABORT          :R2      Abort main loop

[20]> (use-package 'yacc)

*** - USE-PACKAGE: There is no package with name "YACC"
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead.
ABORT          :R2      Abort main loop

What might be wrong? How to use the package? I use clisp under Mac OS X 10.7.5

Rainer Joswig
  • 136,269
  • 10
  • 221
  • 346
prosseek
  • 182,215
  • 215
  • 566
  • 871
  • 1
    Does it work if you call `(asdf:load-system :yacc)` prior to `use-package`? Not sure if it needs to be a keyword or a string for `load-system`. – asm Jan 07 '14 at 14:24
  • @Andrew: Thanks for your hint. That was it. – prosseek Jan 07 '14 at 14:32

1 Answers1

4

There seems to be two ways to do it.

ql:quickload

[1]> (ql:quickload "yacc")
To load "yacc":
  Load 1 ASDF system:
    yacc
; Loading "yacc"

("yacc")
[2]> (use-package 'yacc)
T

asdf:load-system

[1]> (asdf:load-system :yacc)
0 errors, 0 warnings
T
[2]> (use-package 'yacc)
T
prosseek
  • 182,215
  • 215
  • 566
  • 871