If you are willing to parse in :math mode until the end of the line,
then there is an example of an infix-parser that can be used
to embed math into ordinary lisp in among other things in
http://www.cs.berkeley.edu/~fateman/generic/
RJF
Andrew Wolven wrote:
>
>I think it would end up being hybrid parsing. What I
>would like to do is something like:
>
>(defobject car ()
>
>:attributes
>((velocity :modifiable 10)
> (mass 1000)
> (kinetic-energy :math 1/2*(the mass)*(the
>velocity)^2)))
>
>This is just like my current defobject macro, but when
>it would see the declaration ":math" it would take
>everything before the closing paren to be infix or
>maxima notation.
>
>All the kids at my school have been taught either
>MATLAB or FORTRAN to do their engineering problems,
>and I would not want a KBE system to be backwards
>seeming to them.
>
>I guess I need to write a parser to do this.
>
>AKW
>
>_______________________________________________
>Maxima mailing list
>Maxima at math.utexas.edu
>http://www.math.utexas.edu/mailman/listinfo/maxima
>
>