Re: Non-Lisp like DSL implemented in Common Lisp



johnmrot@xxxxxxxxx wrote:

> So, if anybody on this great group has any practical example of this, I
> kindly ask you, if it is public, to give me a pointer to the work.

The example that comes to mind is the language of the
Maxima (GPL'd DOE-Macsyma, http://maxima.sf.net) algebra system.
It is an Algol-like language which is parsed to Lisp expressions
of the form ((op) arg_1 ... arg_n). This is the primary Maxima
object type; every Maxima construct, including arithmetic
expressions, function calls, function definitions, if-then-else,
for loops, code blocks, etc., is parsed into the same kind of object.
The evaluator inspects the car of such an expression
and determines what to do with it.

Maxima is essentially a large collection of functions
which operate on expressions of the above form.
One could work directly in Lisp, but frankly that would
be needlessly painful. Maxima and Lisp are well-integrated,
so one can switch easily between the two if one so desires.

There is more that can be said, but I'll let that be enough for now.

For what it's worth,
Robert Dodier

.



Relevant Pages

  • Re: Why is LISP syntax superior?
    ... Firstly, as others have pointed out, Lisp operators are not all binary. ... Using Cambridge prefix notation, the expressions can use the same ... Mathematicians and scientists work with very long expressions without ...
    (comp.lang.lisp)
  • si(x) in Maxima (Was: Mathematica vs. Lisp)
    ... and I also need the small-k series expansions of those expressions, ... yield the end result in a usable form, ... If I were doing this in Mathematica, ... does anyone have an example of using a Maxima result for a lambda ...
    (comp.lang.lisp)
  • si(x) in Maxima (Was: Mathematica vs. Lisp)
    ... and I also need the small-k series expansions of those expressions, ... yield the end result in a usable form, ... If I were doing this in Mathematica, ... does anyone have an example of using a Maxima result for a lambda ...
    (sci.math.symbolic)
  • Re: Any macro for inserting math "normally"
    ... Greater general familiary with infix than with prefix ... whereas using LISP for math during his entire ... number of parentheses. ... Because expressions are complicated; finding them requires ...
    (comp.lang.lisp)
  • Re: Is Xlisp-Stat Dead?
    ... Well, I wonder if you have looked at Maxima, a computer algebra ... it is easy to drop into Lisp ... making a start on assembling quality numerics libraries. ... If/when you have some CL libraries to release, ...
    (comp.lang.lisp)

Loading