parser: map input strings onto arbitrary expressions (not only symbols).
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Sat, 13 Sep 2008 00:30:22 +0000 (04:30 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Fri, 19 Sep 2008 09:15:49 +0000 (13:15 +0400)
commit58a84c0adac7cbaa63a50c06815aed9c7a0bcdcc
tree9c46e5017e045143d8fc6e0604572efc7fa9decd
parent949508429ea9850b8ec36d862f4e4d291773c313
parser: map input strings onto arbitrary expressions (not only symbols).

So it's possible to make abbreviations, e.g.

symbol x;
symtab table;
table["x"] = x + log(x) + 1;
parser reader(table);
ex e = reader("1 + x^2 + 5*x^3");
ginac/parser/parse_context.cpp
ginac/parser/parse_context.hpp