* This file must be processed with flex. */
/*
- * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2001 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 "numeric.h"
#include "symbol.h"
-#ifndef NO_NAMESPACE_GINAC
using namespace GiNaC;
namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
#include "input_parser.h"
-#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC
// Table of all used symbols
struct sym_def {
return 1;
}
-#ifndef NO_NAMESPACE_GINAC
namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
// Set the input string
void set_lexer_string(const std::string &s)
return;
for (int i=0; i<l.nops(); i++) {
if (is_ex_exactly_of_type(l.op(i), symbol))
- syms[ex_to_symbol(l.op(i)).getname()] = sym_def(l.op(i), true);
+ syms[ex_to_symbol(l.op(i)).get_name()] = sym_def(l.op(i), true);
}
}
// Check whether symbol was predefined
bool is_lexer_symbol_predefined(const ex &s)
{
- sym_tab::const_iterator i = syms.find(ex_to_symbol(s).getname());
+ sym_tab::const_iterator i = syms.find(ex_to_symbol(s).get_name());
if (i == syms.end())
return false;
else
return (*i).second.predefined;
}
-#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC