* Implementation of GiNaC's parser. */
/*
- * GiNaC Copyright (C) 1999-2009 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "lexer.h"
#include "debug.h"
#include "mul.h"
+#include "function.h"
#include "constant.h"
#include <sstream>
Parse_error_("no function \"" << name << "\" with " <<
args.size() << " arguments");
}
- ex ret = reader->second(args);
+ ex ret = function(reader->second, args);
return ret;
}
return e;
}
-extern numeric* _num_1_p;
-extern ex _ex0;
+extern const ex _ex0;
/// unary_expr: [+-] expression
ex parser::parse_unary_expr()