acdk_lisp contains a lisp interpreter, which can be used
to control all ACDK objects.
Lisp has many talents for an embedded scripting language:
It is simple in concepts, lean in implementation, flexible
and dynamic. Popular applications embedding Lisp as macro
language is for example Emacs or AutoCAD.
acdk_lisp provides a free standing Lisp implementation
with most common constructs, inluding
macros
and
Object Oriented extension following
the Common Lisp modell.
acdk_lisp is seamless integrated with ACDK C++.
From inside the Lisp code any ACDK Class (implemented in C++, CfgScript
or other DMI Implementations) can be accessed:
(defun foo (string1 string2)
(setf sb (new 'acdk.lang.StringBuffer string1)) ; this is the ordinary C++ class
(sb 'append string2)
)
((peek-static 'acdk.lang.System 'out) 'println (foo "Hello " "ACDK"))
|
Please refer also to: