]> www.ginac.de Git - ginac.git/blobdiff - ginac/parser/parser.cpp
Allow user defined functions to be parsed.
[ginac.git] / ginac / parser / parser.cpp
index 42edf5b0834eceac42f5bf52606935726c8a62ed..49314663fedb843c7f48e7a9c77c97971c418874 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;
 }