X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Finput_lexer.h;h=759b94466fd78e145dbbea3380c40777cee515a4;hp=b7cc3c01af4da7ac2d7f861e7864ff21661077cc;hb=e8c6a2891bc68ca8f97a7d4b8bd0dd3ac322d982;hpb=e7cc6a764ff67b5885d6633385fac23ccc1dc9a7 diff --git a/ginac/input_lexer.h b/ginac/input_lexer.h index b7cc3c01..759b9446 100644 --- a/ginac/input_lexer.h +++ b/ginac/input_lexer.h @@ -4,7 +4,7 @@ * This file must be processed with flex. */ /* - * GiNaC Copyright (C) 1999-2002 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 @@ -37,11 +37,7 @@ extern "C" { extern int ginac_yyerror(char *s); extern int ginac_yylex(void); extern void ginac_yyrestart(FILE *f); -#if YYTEXT_POINTER extern char *ginac_yytext; -#else -extern char ginac_yytext[]; -#endif namespace GiNaC { @@ -50,6 +46,9 @@ class ex; /** Set the input string to be parsed by ginac_yyparse() (used internally). */ extern void set_lexer_string(const std::string &s); +/** Get name of symbol/index (used internally). */ +extern std::string get_symbol_name(const ex & s); + /** Set the list of predefined symbols for the lexer (used internally). */ extern void set_lexer_symbols(ex l); @@ -57,7 +56,7 @@ extern void set_lexer_symbols(ex l); extern bool is_lexer_symbol_predefined(const ex &s); /** The expression parser function (used internally). */ -extern int ginac_yyparse(); +extern int ginac_yyparse(void); /** The expression returned by the parser (used internally). */ extern ex parsed_ex;