Re: Non-Lisp like DSL implemented in Common Lisp
- From: "Robert Dodier" <robert.dodier@xxxxxxxxx>
- Date: 9 Aug 2005 22:45:07 -0700
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
.
- References:
- Non-Lisp like DSL implemented in Common Lisp
- From: johnmrot
- Non-Lisp like DSL implemented in Common Lisp
- Prev by Date: Re: floating-point-underflow
- Next by Date: Re: floating-point-underflow
- Previous by thread: Re: Non-Lisp like DSL implemented in Common Lisp
- Next by thread: Re: Non-Lisp like DSL implemented in Common Lisp
- Index(es):
Relevant Pages
|
Loading