DGtal-team/DGtal — pull request #458 by JacquesOlivierLachaud (2012-09-17 15:38:10+00:00)
Title: Correct problems with MPolynomialReader. Especially, some terms were not...

... read with the correct priority. Now 45xy and 45*xy and 45*x*y are equivalent expressions.
The problem is due to the fact that boost::spirit does not handle correctly BNR forms like:
expr := mulexpr
| expr '+' mulexpr;

In the new version, we use a trick like:
expr := mulexpr ( '+' mulexpr )*;

The drawback is that nodes have an arbitrary number of children, instead of two with the usual representation. Especially ugly is the mix of '+' and '-' at the same node !