Allow user defined functions to be parsed.
[ginac.git] / ginac / parser / parser.cpp
index 42a7ae2b8c529583586f0c32784f7de5c4175b6b..6bfaf002c4ef68d3fe16df344f045aad0a0495e3 100644 (file)
@@ -25,6 +25,7 @@
 #include "debug.h"
 #include "mul.h"
 #include "constant.h"
+#include "function.h"
 
 #include <sstream>
 #include <stdexcept>
@@ -65,7 +66,7 @@ ex parser::parse_identifier_expr()
                Parse_error_("no function \"" << name << "\" with " <<
                             args.size() << " arguments");
        }
-       ex ret = reader->second(args);
+       ex ret = GiNaC::function((unsigned)reader->second, args);
        return ret;
 }