* This file must be processed with flex. */
/*
- * GiNaC Copyright (C) 1999-2004 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2007 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
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Definitions
*/
+%pointer
+
%{
#include "config.h"
sym_tab syms;
// Type of symbols to generate (real or complex)
-unsigned symboltype = symbol_options::complex;
+unsigned symboltype = domain::complex;
// lex input function
static int ginsh_input(char *buf, int max_size);
{A}{AN}* {
sym_tab::const_iterator i = syms.find(yytext);
if (i == syms.end()) {
- if (symboltype == symbol_options::complex) {
+ if (symboltype == domain::complex) {
yylval = syms[yytext] = *(new symbol(yytext));
} else {
- yylval = syms[yytext] = *(new symbol(yytext, symbol_options::real));
+ yylval = syms[yytext] = *(new symbol(yytext, domain::real));
}
} else
yylval = i->second;