Hello, In the html doc, section 5.15.2 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"]; Best regards Jean-Michaël Celerier
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/>
participants (2)
-
Jean-Michaël Celerier
-
Richard B. Kreckel