Public feed #721483

Stuff

public text v1 · immutable
Raw Edit
·published 2007-10-01 08:37 UTC
rendered paste body
                class UnknownSymbol: public LexError{
                        public:
                                const char symbol;
                                UnknownSymbol(const unsigned int lineNumber, symbol) :
                                        LexError(lineNumber), symbol(symbol) {};
                                virtual const char* what() const throw()
                                {
                                        std::string errorMessage;
                                        std::stringstream ss(std::stringstream::in
                                        | std::stringstream::out);

                                        ss << "Line " << lineNumber << ": Unknown Symbol detected: " << symbol;

                                        errorMessage = ss.str();
                                        return errorMessage.c_str();
                                }
                };
                cla