Listing 2: The RepeatLiteral class
class RepeatLiteral : public RegularExpression { LiteralExpression * literal_; public: RepeatLiteral( LiteralExpression * literal ) : literal_( literal ) {} virtual bool Interpret( const char *& sz ) { while( literal_->LiteralExpression::Interpret( sz ) ) ; return true; } }; End of Listing