1 Aug
2015
1 Aug
'15
12:55 a.m.
On 07/31/2015 02:17 PM, Jean-Michaƫl Celerier wrote:
I think that :
{ parser reader; ex e = reader("2*x+sin(y)"); symtab table = reader.get_syms(); symbol x = reader["x"]; symbol y = reader["y"]; }
the two last lines should be
symbol x = table["x"]; symbol y = table["y"];
You're right. Only, a symtab maps to expressions, not to symbols, so you will have to coerce it to a symbol, first. Thanks for pointing this out. -richy. -- Richard B. Kreckel <http://in.terlu.de/~kreckel/>