Messages of subject
MathML to Expression 
MartinSolum
Member since : Jan 14, 2005
Messages : 1

Jan 14, 2005 at 8:46 PM
The conversion from an expression to MathML is wonderfully easy. Is there functionality or planned functionality to convert from a MathML expression to a Jeks interpretable expression? If not, is there a suggestion of how best to approach this problem and which classes to look at as patterns?
Thanks,
 Martin

Manu
Location : Paris / France
Member since : Apr 29, 2003
Messages : 394

Jan 29, 2005 at 8:45 AM
> Is there functionality or planned functionality to convert from a MathML expression
> to a Jeks interpretable expression?
That could be a nice feature. :)
The main problem is that MathML is able to represent much more things than JeksParser is able to handle and I'm not sure people will be interested by this kind of converter, if they have to limit themselves to a subpart of MathML. What do you think about this limitations ?
> [...] Is there a suggestion of how best to approach this problem
> and which classes to look at as patterns?
I would parse the MathML expression with DOM, then create an ExpressionNode tree from the DOM tree with the classes in com.eteks.parser.node package and return a CompiledExpression instance. The ExpressionParameter of this object would handle all the variables of the MathML expression.  Manu (moderator/modérateur)
