MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / Execute

Method Execute

src/twparser/policyparser.cpp:118–130  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// Execute -- attempts to parse input to create list of fcospecs on failure, it will throw an error (binding failed, or parse error) on success, the list will be populated //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

116// on success, the list will be populated
117///////////////////////////////////////////////////////////////////////////////
118void cPolicyParser::Execute(cGenreSpecListVector& policy, cErrorBucket* pError) //throw( eParserHelper )
119{
120 cParserHelper::Init(pError);
121
122 std::basic_stringstream<char> in(ConvertMultibyte(mIn));
123 tw_yy_scan lexer(in);
124
125 // start the parsing
126 if (mParser.yyparse(&lexer) != 0)
127 throw eParseFailed(_T(""));
128
129 cParserHelper::Finit(&policy);
130}
131
132
133// NOTE: this version ALWAYS IGNORES the va_list!! Even though it says "...",

Callers

nothing calls this directly

Calls 1

yyparseMethod · 0.80

Tested by

no test coverage detected