#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 (*i).second.predefined;
}
-#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC
#include "matrix.h"
#include "inifcns.h"
-#ifndef NO_NAMESPACE_GINAC
namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
#define YYERROR_VERBOSE 1
return parser_error;
}
-#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC
-using GiNaC::parser_error;
-#endif // ndef NO_NAMESPACE_GINAC
-
// Error print routine (store error string in parser_error)
int ginac_yyerror(char *s)
{
- parser_error = std::string(s) + " at " + std::string(ginac_yytext);
+ GiNaC::parser_error = std::string(s) + " at " + std::string(ginac_yytext);
return 0;
}