CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CommonTools/Utils/src/ExpressionSetter.cc

Go to the documentation of this file.
00001 #include "CommonTools/Utils/src/ExpressionSetter.h"
00002 #include "CommonTools/Utils/src/AndCombiner.h"
00003 #include "CommonTools/Utils/src/OrCombiner.h"
00004 #include "CommonTools/Utils/src/NotCombiner.h"
00005 #include "CommonTools/Utils/interface/Exception.h"
00006 
00007 using namespace reco::parser;
00008 
00009 void ExpressionSetter::operator()( const char *begin, const char * ) const {
00010   if ( exprStack_.size() == 0 ) 
00011     throw Exception( begin )
00012       << "Grammar error: When trying parse an expression, expression stack is empty! Please contact a developer.";
00013   expr_ = exprStack_.back();
00014 }