parser: improve error reporting a little bit.
[ginac.git] / ginac / parser / lexer.hpp
index b53d08f38d4dddf383d7499b769e21a02f58c241..0a00ed3936dbd2befc02d94e8a4d5778176d958c 100644 (file)
@@ -37,6 +37,9 @@ public:
 
                };
        };
+       
+       /// Symbolic name of the token (for error reporting)
+       std::string tok2str(const int tok) const;
 };
 
 } // namespace GiNaC