]> www.ginac.de Git - ginac.git/blobdiff - ginac/parser/parse_binop_rhs.cpp
Parser: don't bother to generate 3 (C++) functions with autogen.
[ginac.git] / ginac / parser / parse_binop_rhs.cpp
index 886975deeb2ccd666cb352de4647e8fe87e9521f..3f4ade4dca0e15212342fb5a9c431d8854ac0ffe 100644 (file)
@@ -1,17 +1,39 @@
+/** @file parse_binop_rhs.cpp
+ *
+ *  Code to deal with binary operators. */
+
+/*
+ *  GiNaC Copyright (C) 1999-2011 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
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
 #include "ex.h"
 #include "symbol.h"
 #include "mul.h"
 #include "add.h"
 #include "power.h"
 #include "operators.h"
-#include <stdexcept>
-#include <sstream>
 #include "parser.h"
 #include "lexer.h"
 #include "debug.h"
 
-namespace GiNaC
-{
+#include <sstream>
+#include <stdexcept>
+
+namespace GiNaC {
 
 /// Make a sum or a product.
 static ex make_binop_expr(const int binop, const exvector& args);
@@ -92,7 +114,7 @@ ex parser::parse_binop_rhs(int expr_prec, ex& lhs)
        }
 }
 
-extern numeric* _num_1_p;
+extern const numeric* _num_1_p;
 
 static ex make_minus_expr(const exvector& args)
 {
@@ -173,4 +195,3 @@ static int get_tok_prec(const int c)
 }
 
 } // namespace GiNaC
-