Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-17 23:10:25

0001 #include "CommonTools/Utils/interface/ExpressionSetter.h"
0002 #include "CommonTools/Utils/src/AndCombiner.h"
0003 #include "CommonTools/Utils/src/OrCombiner.h"
0004 #include "CommonTools/Utils/src/NotCombiner.h"
0005 #include "CommonTools/Utils/interface/Exception.h"
0006 
0007 using namespace reco::parser;
0008 
0009 void ExpressionSetter::operator()(const char *begin, const char *) const {
0010   if (exprStack_.empty())
0011     throw Exception(begin)
0012         << "Grammar error: When trying parse an expression, expression stack is empty! Please contact a developer.";
0013   expr_ = exprStack_.back();
0014 }