Ignore:
Timestamp:
06/09/17 08:50:52 (6 years ago)
Author:
Mark Evenson
Message:

Refactor JAVAPARSER dependencies out of JSS

JAVAPARSER needs ABCL-ASDF to load its Maven artifact, but ABCL-ASDF
needs JSS. Therefore we refactor these dependencies into the ASDF
infrastructure rather than dealing with CL:REQUIRE, which isn't going
to work anyways unless there is another mechanism to load Maven
artifacts.

The JAVAPARSER system is not working due to dependency on the missing
symbols CL-USER::REPLACE-ALL and CL-USER::TREE-REPLACE, but that was
the case before this patch as Alan mistakenly didn't include it in his
submitted patch series.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/contrib/jss/invoke.lisp

    r15064 r15065  
    206206(eval-when (:compile-toplevel :load-toplevel :execute)
    207207  (defun read-invoke (stream char arg)
    208     (if (eql arg 1)
    209   (progn (require 'javaparser)
    210          (read-sharp-java-expression stream))
    211   (progn
    212     (unread-char char stream)
    213     (let ((name (read stream)))
    214       (if (or (find #\. name) (find #\{ name))
    215     (jss-transform-to-field name)
    216     (let ((object-var (gensym))
    217           (args-var (gensym)))
    218       `(lambda (,object-var &rest ,args-var)
    219          (invoke-restargs ,name  ,object-var ,args-var ,(eql arg 0)))))))))
     208    (unread-char char stream)
     209    (let ((name (read stream)))
     210      (if (or (find #\. name) (find #\{ name))
     211          (jss-transform-to-field name)
     212          (let ((object-var (gensym))
     213                (args-var (gensym)))
     214            `(lambda (,object-var &rest ,args-var)
     215               (invoke-restargs ,name  ,object-var ,args-var ,(eql arg 0)))))))
    220216  (set-dispatch-macro-character #\# #\" 'read-invoke))
    221217
Note: See TracChangeset for help on using the changeset viewer.