]> www.ginac.de Git - ginac.git/blobdiff - ginsh/ginsh_lexer.ll
Happy new year!
[ginac.git] / ginsh / ginsh_lexer.ll
index 896c28d34a3ae38eb91fce11cd2b95eb619dfda9..16e86e5b4c6c53dd0c3e7e9e1197679b20756dd3 100644 (file)
@@ -4,7 +4,7 @@
  *  This file must be processed with flex. */
 
 /*
- *  GiNaC Copyright (C) 1999-2004 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2005 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
@@ -26,6 +26,8 @@
  *  Definitions
  */
 
+%pointer
+
 %{
 #include "config.h"
 
@@ -38,7 +40,7 @@
 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);
@@ -110,10 +112,10 @@ real_symbols    return T_REAL_SYMBOLS;
 {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;