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;
cout << (syms.size() > 350 ? 350 : syms.size());
cout << " out of a possible 350.\n";
}
- | T_REAL_SYMBOLS { symboltype = symbol_options::real; }
- | T_COMPLEX_SYMBOLS { symboltype = symbol_options::complex; }
+ | T_REAL_SYMBOLS { symboltype = domain::real; }
+ | T_COMPLEX_SYMBOLS { symboltype = domain::complex; }
| T_TIME {getrusage(RUSAGE_SELF, &start_time);} '(' exp ')' {
getrusage(RUSAGE_SELF, &end_time);
cout << (end_time.ru_utime.tv_sec - start_time.ru_utime.tv_sec) +